﻿namespace HuaWei.CBR
{
    using DevExpress.Utils;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Mask;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Card;
    using DevExpress.XtraGrid.Views.Grid;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;
    using DevExpress.XtraTab;
    using DevExpress.XtraTreeList;
    using DevExpress.XtraTreeList.Columns;
    using HuaWei.CommClass;
    using HuaWei.CommComp;
    using HuaWei.Common;
    using HuaWei.DAI;
    using HuaWei.GLY;
    using HuaWei.Windows.Forms;
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.IO;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    public class FrmQDJL : FrmBase
    {
        private bool _flag1 = false;
        private BindingNavigator bindingNavigator2;
        private BindingSource bindingSource;
        private BindingSource bindingSource1;
        private BindingSource bindingSource2;
        private BindingSource bindingSource3;
        private BindingSource bindingSource4;
        private BindingSource bindingSource5;
        private BindingSource bindingSource6;
        private BindingSource bindingSource7;
        private BindingSource bindingSource8;
        private ButtonEdit buttonEdit;
        private CardView cardView3;
        private CheckEdit ceTYSB;
        private CheckEdit checkEdit1;
        private GridColumn colBDS;
        private GridColumn colBL;
        private GridColumn colBQJLS;
        private TreeListColumn colbqmjlje;
        private TreeListColumn colbqmjls;
        private GridColumn colBW;
        private TreeListColumn colCBMC;
        private GridColumn colCT1;
        private GridColumn colDW;
        private TreeListColumn colHTJE;
        private TreeListColumn colHTSL;
        private TreeListColumn colID;
        private GridColumn colJSJG;
        private GridColumn colJSS;
        private GridColumn colMC;
        private GridColumn colPZBH;
        private GridColumn colQDBH;
        private TreeListColumn colQDBH1;
        private TreeListColumn colQDDW;
        private GridColumn colQQZH;
        private TreeListColumn colsgtsl;
        private GridColumn colSL;
        private GridColumn colTZBH;
        private TreeListColumn colwcbl;
        private GridColumn colXMMC;
        private TreeListColumn colZBDJ;
        private HuaWei.Common.dataSets1 dataSets1;
        private DockManager dockManager;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private DockPanel dockPanel2;
        private ControlContainer dockPanel2_Container;
        private DockPanel dockPanel3;
        private ControlContainer dockPanel3_Container;
        private TextEdit edtPZBH;
        private GridControl grdSPQK;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        private GridColumn gridColumn3;
        private GridColumn gridColumn4;
        private GridColumn gridColumn5;
        private GridColumn gridColumn6;
        private GridColumn gridColumn7;
        private GridColumn gridColumn8;
        private GridColumn gridColumn9;
        private GridControl gridControl;
        private GridControl gridControl2;
        private GridControl gridControl3;
        private GridControl gridControl4;
        private GridControl gridControl5;
        private GridControl gridQDJL_CT;
        private GridView gridView1;
        private GridView gridView2;
        private GridView gridView3;
        private GridView gridView4;
        private GridView gridView5;
        private GridView gridView6;
        private GroupControl groupControl1;
        private GroupControl groupControl2;
        private GroupControl groupControl3;
        private GroupControl groupControl5;
        private GroupControl groupControl6;
        private PanelControl iAnFljdXyH;
        private IContainer icontainer1 = null;
        private ImageList imageList;
        private LayoutControl layoutControl1;
        private LayoutControl layoutControl2;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlGroup layoutControlGroup11;
        private LayoutControlItem layoutControlItem1;
        private LayoutControlItem layoutControlItem11;
        private LayoutControlItem layoutControlItem2;
        private LayoutControlItem layoutControlItem21;
        private LayoutControlItem layoutControlItem3;
        private LayoutControlItem layoutControlItem31;
        private LayoutControlItem layoutControlItem4;
        private LayoutControlItem layoutControlItem41;
        private LayoutControlItem layoutControlItem5;
        private LayoutControlItem layoutControlItem6;
        private LayoutControlItem layoutControlItem61;
        private LayoutControlItem layoutControlItem7;
        private LayoutControlItem layoutControlItem71;
        private TreeListColumn mdicuckivT;
        private MemoEdit memoEdit1;
        private Panel panel1;
        private PanelControl panelControl1;
        private PanelControl panelControl2;
        private PanelControl panelControl3;
        private PanelControl panelControl4;
        private PanelControl panelControl5;
        private PanelControl panelControl6;
        private PanelControl panelControl7;
        private PanelControl panelControl8;
        private PictureEdit pictureEdit1;
        private RadioGroup radioGroup;
        private RepositoryItemImageComboBox repositoryItemImageComboBox2;
        private RepositoryItemPictureEdit repositoryItemPictureEdit2;
        private RepositoryItemTextEdit repositoryItemTextEdit1;
        private RepositoryItemTextEdit repositoryItemTextEdit2;
        private RepositoryItemTextEdit repositoryItemTextEdit3;
        private SimpleButton simpleButton2;
        private SimpleButton simpleButton3;
        private SplitterControl splitterControl1;
        private SplitterControl splitterControl2;
        private SplitterControl splitterControl3;
        private TextEdit textEdit;
        private TextEdit textEdit1;
        private TextEdit textEdit2;
        private TextEdit textEdit3;
        private TextEdit textEdit4;
        private TextEdit textEdit5;
        private TextEdit textEdit6;
        private TextEdit textEdit7;
        private ToolStripButton toolStripButton1;
        private ToolStripButton toolStripButton10;
        private ToolStripButton tsbOrder;
        private ToolStripButton toolStripButton4;
        private ToolStripButton toolStripButton5;
        private ToolStripButton toolStripButton6;
        private ToolStripButton toolStripButton7;
        private ToolStripButton toolStripButton8;
        private ToolStripButton toolStripButton9;
        private ToolStripLabel toolStripLabel1;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripSeparator toolStripSeparator2;
        private ToolStripSeparator toolStripSeparator3;
        private ToolStripSeparator toolStripSeparator4;
        private ToolStripSeparator toolStripSeparator5;
        private ToolStripSeparator toolStripSeparator6;
        private ToolStripSeparator toolStripSeparator7;
        private ToolStripTextBox toolStripTextBox1;
        private ToolTipController toolTipController;
        private TreeList trJLQD;
        private XtraTabControl xtraTabControl2;
        private XtraTabPage xtraTabPage3;
        private XtraTabPage xtraTabPage4;

        public FrmQDJL()
        {
            this.InitializeComponent();
            this.LoadData();
        }

        private void bindingSource2_PositionChanged(object sender, EventArgs e)
        {
            if (this._flag1)
            {
                this.method11("");
                this.method13();
            }
        }

        private void bindingSource4_AddingNew(object sender, AddingNewEventArgs e)
        {
            this.bindingSource.EndEdit();
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource);
            BindingSource source = (BindingSource)sender;
            DataRowView view2 = ((DataView)source.List).AddNew();
            view2["id"] = Guid.NewGuid();
            view2["pid"] = dataRow["ID"];
            if (source.Count == 1)
            {
                source.EndEdit();
            }
            source.MoveLast();
            e.NewObject = dataRow;
        }

        private void buttonEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            this.buttonEdit.Text = "";
            this.method7(false);
        }

        private void buttonEdit_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.method7(false);
            }
        }

        private void cardView3_Click(object sender, EventArgs e)
        {
            if (this.bindingSource1.List.Count > 0)
            {
                string str = (this.bindingSource1.Current as DataRowView).Row["ID"].ToString();
                this.method10(str);
            }
        }

        private void cardView3_DoubleClick(object sender, EventArgs e)
        {
            if (this.bindingSource1.List.Count > 0)
            {
                string str = (this.bindingSource1.Current as DataRowView).Row["ID"].ToString();
                this.method10(str);
                this.xtraTabControl2.SelectedTabPageIndex = 1;
            }
        }

        private void cardView3_MouseMove(object sender, MouseEventArgs e)
        {
        }

        private void ceTYSB_EditValueChanging(object sender, ChangingEventArgs e)
        {
            if (e.NewValue.Equals(1))
            {
                if (!this.Check())
                {
                    e.Cancel = true;
                }
                else
                {
                    DevCCHelp.ControlForm(base.Controls, true, 1);
                }
            }
            else
            {
                DevCCHelp.ControlForm(base.Controls, false, 1);
            }
        }

        public override bool Check()
        {
            if (this.edtPZBH.Text.Equals(""))
            {
                MsgBox.ShowMsg("凭证编号不能为空，请修正后继续！");
                return false;
            }
            string objId = DHelp.GetObjId(this.bindingSource);
            string condition = string.Format("BDID='{0}' and qcid='{2}' and id <> '{1}'", GParams._BDID, objId, GParams.QCInfo.QCID);
            string condition1 = string.Format("BDID='{0}' and qcid='{1}'", GParams._BDID, GParams.QCInfo.QCID);
            if (DBHelp.Unique("QDJL_M", "PZBH", this.edtPZBH.Text, condition) || DBHelp.Unique("BGQDJL_M", "PZBH", this.edtPZBH.Text, condition1))
            {
                MsgBox.ShowMsg("当前凭证编号已经存在，请修正后继续！");
                return false;
            }
            if (this.bindingSource2.List.Count.Equals(0))
            {
                MsgBox.ShowMsg("当前凭证没有计量清单，请修正后继续！");
                return false;
            }
            DataView list = this.bindingSource2.List as DataView;
            IEnumerator enumerator = list.GetEnumerator();
            {
                while (enumerator.MoveNext())
                {
                    DataRowView current = (DataRowView)enumerator.Current;
                    string str3 = current.Row["bqjls"].ToString();
                    if (str3.Equals("0") || str3.Equals(""))
                    {
                        goto Label_011C;
                    }
                }
                goto Label_0143;
            Label_011C:
                MsgBox.ShowMsg("计量清单的[本期计量数量]不能为零，请修正后继续！");
                return false;
            }
        Label_0143:
            return true;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer1 != null))
            {
                this.icontainer1.Dispose();
            }
            base.Dispose(disposing);
        }

        private void GgxUfExf5(object sender, EventArgs e)
        {
            this.method18();
            string key = DHelp.GetObjValue(this.bindingSource2, "qdbh", false);
            this.method12();
            this.bindingSource2.Position = DHelp.BSFind(this.bindingSource2, "qdbh", key);
        }

        private void gridQDJL_CT_DoubleClick(object sender, EventArgs e)
        {
        }

        private void gridView2_DoubleClick(object sender, EventArgs e)
        {
            this.method9();
        }

        private void gridView5_CustomDrawCell(object sender, RowCellCustomDrawEventArgs e)
        {
            if (e.Column.FieldName.Equals("BL"))
            {
                DataRow dataRow = this.gridView5.GetDataRow(e.RowHandle);
                if (dataRow["xh"].Equals(-4) || dataRow["xh"].Equals(-1))
                {
                    e.Appearance.ForeColor = e.Appearance.BackColor;
                }
            }
        }

        private void gridView5_RowCellStyle(object sender, RowCellStyleEventArgs e)
        {
            Class28.smethod11(this.gridView5, e);
        }

        private void gridView6_RowCellStyle(object sender, RowCellStyleEventArgs e)
        {
            Class28.smethod11(this.gridView6, e);
        }

        private void InitializeComponent()
        {
            this.icontainer1 = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(FrmQDJL));
            this.bindingSource6 = new BindingSource(this.icontainer1);
            this.dataSets1 = new HuaWei.Common.dataSets1();
            this.imageList = new ImageList(this.icontainer1);
            this.panelControl2 = new PanelControl();
            this.gridControl = new GridControl();
            this.bindingSource2 = new BindingSource(this.icontainer1);
            this.gridView2 = new GridView();
            this.colQDBH = new GridColumn();
            this.colXMMC = new GridColumn();
            this.colDW = new GridColumn();
            this.colBQJLS = new GridColumn();
            this.repositoryItemTextEdit2 = new RepositoryItemTextEdit();
            this.splitterControl2 = new SplitterControl();
            this.panelControl4 = new PanelControl();
            this.groupControl2 = new GroupControl();
            this.pictureEdit1 = new PictureEdit();
            this.panel1 = new Panel();
            this.simpleButton3 = new SimpleButton();
            this.simpleButton2 = new SimpleButton();
            this.groupControl3 = new GroupControl();
            this.memoEdit1 = new MemoEdit();
            this.bindingSource = new BindingSource(this.icontainer1);
            this.splitterControl3 = new SplitterControl();
            this.gridControl3 = new GridControl();
            this.bindingSource4 = new BindingSource(this.icontainer1);
            this.gridView1 = new GridView();
            this.colBDS = new GridColumn();
            this.colJSS = new GridColumn();
            this.colJSJG = new GridColumn();
            this.repositoryItemTextEdit3 = new RepositoryItemTextEdit();
            this.layoutControl1 = new LayoutControl();
            this.panelControl6 = new PanelControl();
            this.edtPZBH = new TextEdit();
            this.textEdit1 = new TextEdit();
            this.textEdit7 = new TextEdit();
            this.textEdit = new TextEdit();
            this.textEdit6 = new TextEdit();
            this.ceTYSB = new CheckEdit();
            this.layoutControlItem6 = new LayoutControlItem();
            this.layoutControlGroup1 = new LayoutControlGroup();
            this.layoutControlItem1 = new LayoutControlItem();
            this.layoutControlItem2 = new LayoutControlItem();
            this.layoutControlItem3 = new LayoutControlItem();
            this.layoutControlItem4 = new LayoutControlItem();
            this.layoutControlItem5 = new LayoutControlItem();
            this.layoutControlItem7 = new LayoutControlItem();
            this.panelControl3 = new PanelControl();
            this.groupControl6 = new GroupControl();
            this.grdSPQK = new GridControl();
            this.bindingSource8 = new BindingSource(this.icontainer1);
            this.gridView5 = new GridView();
            this.gridColumn5 = new GridColumn();
            this.gridColumn6 = new GridColumn();
            this.colBL = new GridColumn();
            this.repositoryItemTextEdit1 = new RepositoryItemTextEdit();
            this.groupControl5 = new GroupControl();
            this.gridControl2 = new GridControl();
            this.bindingSource7 = new BindingSource(this.icontainer1);
            this.gridView3 = new GridView();
            this.colMC = new GridColumn();
            this.colSL = new GridColumn();
            this.bindingSource3 = new BindingSource(this.icontainer1);
            this.xtraTabControl2 = new XtraTabControl();
            this.xtraTabPage4 = new XtraTabPage();
            this.panelControl7 = new PanelControl();
            this.bindingNavigator2 = new BindingNavigator(this.icontainer1);
            this.toolStripLabel1 = new ToolStripLabel();
            this.toolStripButton4 = new ToolStripButton();
            this.toolStripButton5 = new ToolStripButton();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.toolStripTextBox1 = new ToolStripTextBox();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.toolStripButton6 = new ToolStripButton();
            this.toolStripButton7 = new ToolStripButton();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.toolStripButton8 = new ToolStripButton();
            this.toolStripSeparator4 = new ToolStripSeparator();
            this.toolStripButton1 = new ToolStripButton();
            this.toolStripSeparator7 = new ToolStripSeparator();
            this.toolStripButton9 = new ToolStripButton();
            this.toolStripSeparator5 = new ToolStripSeparator();
            this.toolStripButton10 = new ToolStripButton();
            tsbOrder = new ToolStripButton();
            this.toolStripSeparator6 = new ToolStripSeparator();
            this.splitterControl1 = new SplitterControl();
            this.xtraTabPage3 = new XtraTabPage();
            this.gridQDJL_CT = new GridControl();
            this.bindingSource1 = new BindingSource(this.icontainer1);
            this.cardView3 = new CardView();
            this.colQQZH = new GridColumn();
            this.colTZBH = new GridColumn();
            this.colBW = new GridColumn();
            this.colPZBH = new GridColumn();
            this.colCT1 = new GridColumn();
            this.repositoryItemPictureEdit2 = new RepositoryItemPictureEdit();
            this.toolTipController = new ToolTipController(this.icontainer1);
            this.panelControl1 = new PanelControl();
            this.panelControl8 = new PanelControl();
            this.gridControl4 = new GridControl();
            this.gridView4 = new GridView();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gridColumn3 = new GridColumn();
            this.gridColumn4 = new GridColumn();
            this.layoutControl2 = new LayoutControl();
            this.iAnFljdXyH = new PanelControl();
            this.textEdit2 = new TextEdit();
            this.textEdit3 = new TextEdit();
            this.textEdit4 = new TextEdit();
            this.textEdit5 = new TextEdit();
            this.checkEdit1 = new CheckEdit();
            this.layoutControlItem61 = new LayoutControlItem();
            this.layoutControlGroup11 = new LayoutControlGroup();
            this.layoutControlItem11 = new LayoutControlItem();
            this.layoutControlItem31 = new LayoutControlItem();
            this.layoutControlItem71 = new LayoutControlItem();
            this.layoutControlItem21 = new LayoutControlItem();
            this.layoutControlItem41 = new LayoutControlItem();
            this.groupControl1 = new GroupControl();
            this.gridControl5 = new GridControl();
            this.gridView6 = new GridView();
            this.gridColumn7 = new GridColumn();
            this.gridColumn8 = new GridColumn();
            this.gridColumn9 = new GridColumn();
            this.panelControl5 = new PanelControl();
            this.buttonEdit = new ButtonEdit();
            this.bindingSource5 = new BindingSource(this.icontainer1);
            this.dockManager = new DockManager(this.icontainer1);
            this.dockPanel3 = new DockPanel();
            this.dockPanel3_Container = new ControlContainer();
            this.dockPanel2 = new DockPanel();
            this.dockPanel2_Container = new ControlContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.trJLQD = new TreeList();
            this.colID = new TreeListColumn();
            this.colQDBH1 = new TreeListColumn();
            this.colCBMC = new TreeListColumn();
            this.colHTSL = new TreeListColumn();
            this.colsgtsl = new TreeListColumn();
            this.colZBDJ = new TreeListColumn();
            this.colHTJE = new TreeListColumn();
            this.mdicuckivT = new TreeListColumn();
            this.colQDDW = new TreeListColumn();
            this.colbqmjls = new TreeListColumn();
            this.colbqmjlje = new TreeListColumn();
            this.colwcbl = new TreeListColumn();
            this.repositoryItemImageComboBox2 = new RepositoryItemImageComboBox();
            this.radioGroup = new RadioGroup();
            base.ds.BeginInit();
            base.dsQuery.BeginInit();
            base.dataSets.BeginInit();
            ((ISupportInitialize)this.bindingSource6).BeginInit();
            this.dataSets1.BeginInit();
            this.panelControl2.BeginInit();
            this.panelControl2.SuspendLayout();
            this.gridControl.BeginInit();
            ((ISupportInitialize)this.bindingSource2).BeginInit();
            this.gridView2.BeginInit();
            this.repositoryItemTextEdit2.BeginInit();
            this.panelControl4.BeginInit();
            this.panelControl4.SuspendLayout();
            this.groupControl2.BeginInit();
            this.groupControl2.SuspendLayout();
            this.pictureEdit1.Properties.BeginInit();
            this.panel1.SuspendLayout();
            this.groupControl3.BeginInit();
            this.groupControl3.SuspendLayout();
            this.memoEdit1.Properties.BeginInit();
            ((ISupportInitialize)this.bindingSource).BeginInit();
            this.gridControl3.BeginInit();
            ((ISupportInitialize)this.bindingSource4).BeginInit();
            this.gridView1.BeginInit();
            this.repositoryItemTextEdit3.BeginInit();
            this.layoutControl1.BeginInit();
            this.layoutControl1.SuspendLayout();
            this.panelControl6.BeginInit();
            this.edtPZBH.Properties.BeginInit();
            this.textEdit1.Properties.BeginInit();
            this.textEdit7.Properties.BeginInit();
            this.textEdit.Properties.BeginInit();
            this.textEdit6.Properties.BeginInit();
            this.ceTYSB.Properties.BeginInit();
            this.layoutControlItem6.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.layoutControlItem2.BeginInit();
            this.layoutControlItem3.BeginInit();
            this.layoutControlItem4.BeginInit();
            this.layoutControlItem5.BeginInit();
            this.layoutControlItem7.BeginInit();
            this.panelControl3.BeginInit();
            this.panelControl3.SuspendLayout();
            this.groupControl6.BeginInit();
            this.groupControl6.SuspendLayout();
            this.grdSPQK.BeginInit();
            ((ISupportInitialize)this.bindingSource8).BeginInit();
            this.gridView5.BeginInit();
            this.repositoryItemTextEdit1.BeginInit();
            this.groupControl5.BeginInit();
            this.groupControl5.SuspendLayout();
            this.gridControl2.BeginInit();
            ((ISupportInitialize)this.bindingSource7).BeginInit();
            this.gridView3.BeginInit();
            ((ISupportInitialize)this.bindingSource3).BeginInit();
            this.xtraTabControl2.BeginInit();
            this.xtraTabControl2.SuspendLayout();
            this.xtraTabPage4.SuspendLayout();
            this.panelControl7.BeginInit();
            this.panelControl7.SuspendLayout();
            this.bindingNavigator2.BeginInit();
            this.bindingNavigator2.SuspendLayout();
            this.xtraTabPage3.SuspendLayout();
            this.gridQDJL_CT.BeginInit();
            ((ISupportInitialize)this.bindingSource1).BeginInit();
            this.cardView3.BeginInit();
            this.repositoryItemPictureEdit2.BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.panelControl8.BeginInit();
            this.panelControl8.SuspendLayout();
            this.gridControl4.BeginInit();
            this.gridView4.BeginInit();
            this.layoutControl2.BeginInit();
            this.layoutControl2.SuspendLayout();
            this.iAnFljdXyH.BeginInit();
            this.textEdit2.Properties.BeginInit();
            this.textEdit3.Properties.BeginInit();
            this.textEdit4.Properties.BeginInit();
            this.textEdit5.Properties.BeginInit();
            this.checkEdit1.Properties.BeginInit();
            this.layoutControlItem61.BeginInit();
            this.layoutControlGroup11.BeginInit();
            this.layoutControlItem11.BeginInit();
            this.layoutControlItem31.BeginInit();
            this.layoutControlItem71.BeginInit();
            this.layoutControlItem21.BeginInit();
            this.layoutControlItem41.BeginInit();
            this.groupControl1.BeginInit();
            this.groupControl1.SuspendLayout();
            this.gridControl5.BeginInit();
            this.gridView6.BeginInit();
            this.panelControl5.BeginInit();
            this.panelControl5.SuspendLayout();
            this.buttonEdit.Properties.BeginInit();
            ((ISupportInitialize)this.bindingSource5).BeginInit();
            this.dockManager.BeginInit();
            this.dockPanel3.SuspendLayout();
            this.dockPanel2.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.trJLQD.BeginInit();
            this.repositoryItemImageComboBox2.BeginInit();
            this.radioGroup.Properties.BeginInit();
            base.SuspendLayout();
            this.bindingSource6.DataMember = "JLQD";
            this.bindingSource6.DataSource = this.dataSets1;
            this.dataSets1.DataSetName = "DataSets";
            this.dataSets1.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
            this.imageList.ImageStream = (ImageListStreamer)resources.GetObject("imageList1.ImageStream");
            this.imageList.TransparentColor = Color.Transparent;
            //this.imageList.Images.SetKeyName(0, "MT_16.png");
            //this.imageList.Images.SetKeyName(1, "Available.ico");
            //this.imageList.Images.SetKeyName(2, "Away.ico");
            //this.imageList.Images.SetKeyName(3, "Busy.ico");
            //this.imageList.Images.SetKeyName(4, "Offline.ico");
            this.panelControl2.Controls.Add(this.gridControl);
            this.panelControl2.Controls.Add(this.splitterControl2);
            this.panelControl2.Controls.Add(this.panelControl4);
            this.panelControl2.Controls.Add(this.layoutControl1);
            this.panelControl2.Dock = DockStyle.Fill;
            this.panelControl2.Location = new Point(0, 0x1d);
            this.panelControl2.Name = "panelControl2";
            this.panelControl2.Size = new Size(0x2e9, 0x229);
            this.panelControl2.TabIndex = 6;
            this.gridControl.DataMember = null;
            this.gridControl.DataSource = this.bindingSource2;
            this.gridControl.Dock = DockStyle.Fill;
            this.gridControl.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.First.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.Last.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.Next.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.NextPage.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.Prev.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
            this.gridControl.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gridControl.EmbeddedNavigator.CustomButtons.AddRange(new NavigatorCustomButton[] { new NavigatorCustomButton(-1, 6, true, true, "添加", "Add"), new NavigatorCustomButton(-1, 7, true, true, "删除", "Del") });
            this.gridControl.EmbeddedNavigator.TextLocation = NavigatorButtonsTextLocation.None;
            this.gridControl.EmbeddedNavigator.TextStringFormat = "记录数 {0} of {1}";
            this.gridControl.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.method20);
            this.gridControl.Location = new Point(2, 0x166);
            this.gridControl.MainView = this.gridView2;
            this.gridControl.Name = "gridQDList";
            this.gridControl.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemTextEdit2 });
            this.gridControl.Size = new Size(0x2e5, 0xc1);
            this.gridControl.TabIndex = 2;
            this.gridControl.Tag = "1";
            this.gridControl.UseEmbeddedNavigator = true;
            this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView2 });
            this.bindingSource2.DataSource = base.ds;
            this.bindingSource2.Position = 0;
            this.gridView2.Columns.AddRange(new GridColumn[] { this.colQDBH, this.colXMMC, this.colDW, this.colBQJLS });
            this.gridView2.GridControl = this.gridControl;
            this.gridView2.Name = "gridView2";
            this.gridView2.OptionsCustomization.AllowFilter = false;
            this.gridView2.OptionsCustomization.AllowGroup = false;
            this.gridView2.OptionsCustomization.AllowSort = false;
            this.gridView2.OptionsNavigation.EnterMoveNextColumn = true;
            this.gridView2.OptionsView.ShowGroupPanel = false;
            this.gridView2.OptionsView.ShowIndicator = false;
            this.gridView2.DoubleClick += new EventHandler(this.gridView2_DoubleClick);
            this.colQDBH.Caption = "清单编号";
            this.colQDBH.FieldName = "QDBH";
            this.colQDBH.Name = "colQDBH";
            this.colQDBH.OptionsColumn.AllowEdit = false;
            this.colQDBH.OptionsColumn.ReadOnly = true;
            this.colQDBH.Visible = true;
            this.colQDBH.VisibleIndex = 0;
            this.colQDBH.Width = 0x5c;
            this.colXMMC.Caption = "项目名称";
            this.colXMMC.FieldName = "QDMC";
            this.colXMMC.Name = "colXMMC";
            this.colXMMC.OptionsColumn.AllowEdit = false;
            this.colXMMC.OptionsColumn.ReadOnly = true;
            this.colXMMC.Visible = true;
            this.colXMMC.VisibleIndex = 1;
            this.colXMMC.Width = 340;
            this.colDW.Caption = "单位";
            this.colDW.FieldName = "DW";
            this.colDW.Name = "colDW";
            this.colDW.OptionsColumn.AllowEdit = false;
            this.colDW.OptionsColumn.ReadOnly = true;
            this.colDW.Visible = true;
            this.colDW.VisibleIndex = 2;
            this.colDW.Width = 0x27;
            this.colBQJLS.Caption = "数量";
            this.colBQJLS.ColumnEdit = this.repositoryItemTextEdit2;
            this.colBQJLS.FieldName = "BQJLS";
            this.colBQJLS.Name = "colBQJLS";
            this.colBQJLS.Visible = true;
            this.colBQJLS.VisibleIndex = 3;
            this.colBQJLS.Width = 0x37;
            this.repositoryItemTextEdit2.AutoHeight = false;
            this.repositoryItemTextEdit2.Mask.EditMask = "n3";
            this.repositoryItemTextEdit2.Mask.MaskType = MaskType.Numeric;
            this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2";
            this.repositoryItemTextEdit2.Spin += repositoryItemTextEdit2_Spin;
            this.splitterControl2.Dock = DockStyle.Top;
            this.splitterControl2.Location = new Point(2, 0x160);
            this.splitterControl2.Name = "splitterControl2";
            this.splitterControl2.Size = new Size(0x2e5, 6);
            this.splitterControl2.TabIndex = 0x13;
            this.splitterControl2.TabStop = false;
            this.panelControl4.BorderStyle = BorderStyles.NoBorder;
            this.panelControl4.Controls.Add(this.groupControl2);
            this.panelControl4.Controls.Add(this.groupControl3);
            this.panelControl4.Controls.Add(this.splitterControl3);
            this.panelControl4.Controls.Add(this.gridControl3);
            this.panelControl4.Dock = DockStyle.Top;
            this.panelControl4.Location = new Point(2, 80);
            this.panelControl4.Name = "panelControl4";
            this.panelControl4.Size = new Size(0x2e5, 0x110);
            this.panelControl4.TabIndex = 0x10;
            this.groupControl2.Controls.Add(this.pictureEdit1);
            this.groupControl2.Controls.Add(this.panel1);
            this.groupControl2.Dock = DockStyle.Fill;
            this.groupControl2.Location = new Point(0, 0);
            this.groupControl2.Name = "groupControl2";
            this.groupControl2.Size = new Size(0x26a, 0xa9);
            this.groupControl2.TabIndex = 1;
            this.groupControl2.Text = "计量草图及几何尺寸";
            this.pictureEdit1.Dock = DockStyle.Fill;
            this.pictureEdit1.Location = new Point(0x33, 0x17);
            this.pictureEdit1.Name = "pictureEdit1";
            this.pictureEdit1.Size = new Size(0x235, 0x90);
            this.pictureEdit1.TabIndex = 0;
            this.panel1.Controls.Add(this.simpleButton3);
            this.panel1.Controls.Add(this.simpleButton2);
            this.panel1.Dock = DockStyle.Left;
            this.panel1.Location = new Point(2, 0x17);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x31, 0x90);
            this.panel1.TabIndex = 2;
            this.simpleButton3.Dock = DockStyle.Top;
            this.simpleButton3.Location = new Point(0, 0x17);
            this.simpleButton3.Name = "simpleButton3";
            this.simpleButton3.Size = new Size(0x31, 0x17);
            this.simpleButton3.TabIndex = 2;
            this.simpleButton3.Text = "清草图";
            this.simpleButton3.Click += new EventHandler(this.simpleButton3_Click);
            this.simpleButton2.Dock = DockStyle.Top;
            this.simpleButton2.Location = new Point(0, 0);
            this.simpleButton2.Name = "simpleButton2";
            this.simpleButton2.Size = new Size(0x31, 0x17);
            this.simpleButton2.TabIndex = 1;
            this.simpleButton2.Text = "选草图";
            this.simpleButton2.Click += new EventHandler(this.simpleButton2_Click);
            this.groupControl3.Controls.Add(this.memoEdit1);
            this.groupControl3.Dock = DockStyle.Right;
            this.groupControl3.Location = new Point(0x26a, 0);
            this.groupControl3.Name = "groupControl3";
            this.groupControl3.Size = new Size(0x7b, 0xa9);
            this.groupControl3.TabIndex = 2;
            this.groupControl3.Text = "图形尺寸";
            this.memoEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource, "CC", true));
            this.memoEdit1.Dock = DockStyle.Fill;
            this.memoEdit1.Location = new Point(2, 0x17);
            this.memoEdit1.Name = "memoEdit1";
            this.memoEdit1.Size = new Size(0x77, 0x90);
            this.memoEdit1.TabIndex = 3;
            this.bindingSource.DataMember = "QDJL_M";
            this.bindingSource.DataSource = this.dataSets1;
            this.splitterControl3.Dock = DockStyle.Bottom;
            this.splitterControl3.Location = new Point(0, 0xa9);
            this.splitterControl3.Name = "splitterControl3";
            this.splitterControl3.Size = new Size(0x2e5, 6);
            this.splitterControl3.TabIndex = 20;
            this.splitterControl3.TabStop = false;
            this.gridControl3.DataMember = null;
            this.gridControl3.DataSource = this.bindingSource4;
            this.gridControl3.Dock = DockStyle.Bottom;
            this.gridControl3.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.First.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.Last.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.Next.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.NextPage.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.Prev.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
            this.gridControl3.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gridControl3.EmbeddedNavigator.CustomButtons.AddRange(new NavigatorCustomButton[] { new NavigatorCustomButton(-1, 6, true, true, "添加", "Add"), new NavigatorCustomButton(-1, 7, true, true, "删除", "Del") });
            this.gridControl3.EmbeddedNavigator.TextLocation = NavigatorButtonsTextLocation.None;
            this.gridControl3.EmbeddedNavigator.TextStringFormat = "记录数 {0} of {1}";
            this.gridControl3.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.method21);
            this.gridControl3.Location = new Point(0, 0xaf);
            this.gridControl3.MainView = this.gridView1;
            this.gridControl3.Name = "gridControl3";
            this.gridControl3.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemTextEdit3 });
            this.gridControl3.Size = new Size(0x2e5, 0x61);
            this.gridControl3.TabIndex = 1;
            this.gridControl3.Tag = "1";
            this.gridControl3.UseEmbeddedNavigator = true;
            this.gridControl3.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 });
            this.bindingSource4.DataMember = "QDJL_JSS";
            this.bindingSource4.DataSource = this.dataSets1;
            this.bindingSource4.AddingNew += new AddingNewEventHandler(this.bindingSource4_AddingNew);
            this.gridView1.Columns.AddRange(new GridColumn[] { this.colBDS, this.colJSS, this.colJSJG });
            this.gridView1.GridControl = this.gridControl3;
            this.gridView1.Name = "gridView1";
            this.gridView1.OptionsCustomization.AllowFilter = false;
            this.gridView1.OptionsCustomization.AllowSort = false;
            this.gridView1.OptionsView.ShowGroupPanel = false;
            this.colBDS.Caption = "表达式";
            this.colBDS.FieldName = "BDS";
            this.colBDS.Name = "colBDS";
            this.colBDS.Visible = true;
            this.colBDS.VisibleIndex = 0;
            this.colJSS.Caption = "计算式";
            this.colJSS.FieldName = "JSS";
            this.colJSS.Name = "colJSS";
            this.colJSS.Visible = true;
            this.colJSS.VisibleIndex = 1;
            this.colJSJG.Caption = "计算结果";
            this.colJSJG.ColumnEdit = this.repositoryItemTextEdit3;
            this.colJSJG.FieldName = "JSJG";
            this.colJSJG.Name = "colJSJG";
            this.colJSJG.Visible = true;
            this.colJSJG.VisibleIndex = 2;
            this.repositoryItemTextEdit3.AutoHeight = false;
            this.repositoryItemTextEdit3.Name = "repositoryItemTextEdit3";
            this.layoutControl1.Controls.Add(this.panelControl6);
            this.layoutControl1.Controls.Add(this.edtPZBH);
            this.layoutControl1.Controls.Add(this.textEdit1);
            this.layoutControl1.Controls.Add(this.textEdit7);
            this.layoutControl1.Controls.Add(this.textEdit);
            this.layoutControl1.Controls.Add(this.textEdit6);
            this.layoutControl1.Controls.Add(this.ceTYSB);
            this.layoutControl1.Dock = DockStyle.Top;
            this.layoutControl1.HiddenItems.AddRange(new BaseLayoutItem[] { this.layoutControlItem6 });
            this.layoutControl1.Location = new Point(2, 2);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new Size(0x2e5, 0x4e);
            this.layoutControl1.TabIndex = 15;
            this.layoutControl1.Text = "layoutControl1";
            this.panelControl6.Location = new Point(0x6f, 2);
            this.panelControl6.Name = "panelControl6";
            this.panelControl6.Size = new Size(0xa7, 20);
            this.panelControl6.TabIndex = 0x10;
            this.edtPZBH.DataBindings.Add(new Binding("EditValue", this.bindingSource, "PZBH", true));
            this.edtPZBH.Location = new Point(0x65, 0x1b);
            this.edtPZBH.Name = "edtPZBH";
            this.edtPZBH.Size = new Size(0xa3, 0x15);
            this.edtPZBH.StyleController = this.layoutControl1;
            this.edtPZBH.TabIndex = 0;
            this.textEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BW", true));
            this.textEdit1.Location = new Point(0x16f, 0x34);
            this.textEdit1.Name = "textEdit1";
            this.textEdit1.Size = new Size(0x174, 0x15);
            this.textEdit1.StyleController = this.layoutControl1;
            this.textEdit1.TabIndex = 10;
            this.textEdit7.DataBindings.Add(new Binding("EditValue", this.bindingSource, "QQZH", true));
            this.textEdit7.Location = new Point(0x16f, 0x1b);
            this.textEdit7.Name = "textEdit7";
            this.textEdit7.Size = new Size(0x174, 0x15);
            this.textEdit7.StyleController = this.layoutControl1;
            this.textEdit7.TabIndex = 8;
            this.textEdit7.ParseEditValue += new ConvertEditValueEventHandler(this.textEdit7_ParseEditValue);
            this.textEdit.DataBindings.Add(new Binding("EditValue", this.bindingSource, "TZBH", true));
            this.textEdit.Location = new Point(0x65, 0x34);
            this.textEdit.Name = "textEdit10";
            this.textEdit.Size = new Size(0xa3, 0x15);
            this.textEdit.StyleController = this.layoutControl1;
            this.textEdit.TabIndex = 9;
            this.textEdit6.DataBindings.Add(new Binding("EditValue", this.bindingSource, "ZJJGZSBH", true));
            this.textEdit6.Location = new Point(200, 2);
            this.textEdit6.Name = "textEdit11";
            this.textEdit6.Size = new Size(0x21b, 0x15);
            this.textEdit6.StyleController = this.layoutControl1;
            this.textEdit6.TabIndex = 13;
            this.ceTYSB.DataBindings.Add(new Binding("EditValue", this.bindingSource, "TYSB", true));
            this.ceTYSB.EditValue = 0;
            this.ceTYSB.Location = new Point(2, 2);
            this.ceTYSB.Name = "ceTYSB";
            this.ceTYSB.Properties.Caption = "同意上报";
            this.ceTYSB.Properties.DisplayValueChecked = "1";
            this.ceTYSB.Properties.DisplayValueUnchecked = "0";
            this.ceTYSB.Properties.NullStyle = StyleIndeterminate.Unchecked;
            this.ceTYSB.Properties.ValueChecked = 1;
            this.ceTYSB.Properties.ValueUnchecked = 0;
            this.ceTYSB.Size = new Size(0x5f, 0x13);
            this.ceTYSB.StyleController = this.layoutControl1;
            this.ceTYSB.TabIndex = 15;
            this.ceTYSB.Tag = "-1";
            this.ceTYSB.EditValueChanging += new ChangingEventHandler(this.ceTYSB_EditValueChanging);
            this.layoutControlItem6.Control = this.panelControl6;
            this.layoutControlItem6.CustomizationFormText = "layoutControlItem6";
            this.layoutControlItem6.Location = new Point(0, 0);
            this.layoutControlItem6.Name = "layoutControlItem6";
            this.layoutControlItem6.Size = new Size(280, 0x18);
            this.layoutControlItem6.Text = "layoutControlItem6";
            this.layoutControlItem6.TextSize = new Size(50, 20);
            this.layoutControlItem6.TextToControlDistance = 5;
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.False;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5, this.layoutControlItem7 });
            this.layoutControlGroup1.Location = new Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Size = new Size(0x2e5, 0x4e);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            this.layoutControlItem1.Control = this.edtPZBH;
            this.layoutControlItem1.CustomizationFormText = "凭证编号";
            this.layoutControlItem1.Location = new Point(0, 0x19);
            this.layoutControlItem1.MaxSize = new Size(0x10a, 0x19);
            this.layoutControlItem1.MinSize = new Size(0x10a, 0x19);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new Size(0x10a, 0x19);
            this.layoutControlItem1.SizeConstraintsType = SizeConstraintsType.Custom;
            this.layoutControlItem1.Text = "凭证编号";
            this.layoutControlItem1.TextSize = new Size(0x60, 14);
            this.layoutControlItem2.Control = this.textEdit7;
            this.layoutControlItem2.CustomizationFormText = "起讫桩号";
            this.layoutControlItem2.Location = new Point(0x10a, 0x19);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new Size(0x1db, 0x19);
            this.layoutControlItem2.Text = "起讫桩号";
            this.layoutControlItem2.TextSize = new Size(0x60, 14);
            this.layoutControlItem3.Control = this.textEdit;
            this.layoutControlItem3.CustomizationFormText = "图纸编号";
            this.layoutControlItem3.Location = new Point(0, 50);
            this.layoutControlItem3.Name = "layoutControlItem3";
            this.layoutControlItem3.Size = new Size(0x10a, 0x1c);
            this.layoutControlItem3.Text = "图纸编号";
            this.layoutControlItem3.TextSize = new Size(0x60, 14);
            this.layoutControlItem4.Control = this.textEdit1;
            this.layoutControlItem4.CustomizationFormText = "部位";
            this.layoutControlItem4.Location = new Point(0x10a, 50);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.Size = new Size(0x1db, 0x1c);
            this.layoutControlItem4.Text = "部位";
            this.layoutControlItem4.TextSize = new Size(0x60, 14);
            this.layoutControlItem5.Control = this.textEdit6;
            this.layoutControlItem5.CustomizationFormText = "中间交工证书编号";
            this.layoutControlItem5.Location = new Point(0x63, 0);
            this.layoutControlItem5.Name = "layoutControlItem5";
            this.layoutControlItem5.Size = new Size(0x282, 0x19);
            this.layoutControlItem5.Text = "中间交工证书编号";
            this.layoutControlItem5.TextSize = new Size(0x60, 14);
            this.layoutControlItem7.Control = this.ceTYSB;
            this.layoutControlItem7.CustomizationFormText = "layoutControlItem7";
            this.layoutControlItem7.Location = new Point(0, 0);
            this.layoutControlItem7.Name = "layoutControlItem7";
            this.layoutControlItem7.Size = new Size(0x63, 0x19);
            this.layoutControlItem7.Text = "layoutControlItem7";
            this.layoutControlItem7.TextSize = new Size(0, 0);
            this.layoutControlItem7.TextToControlDistance = 0;
            this.layoutControlItem7.TextVisible = false;
            this.panelControl3.Controls.Add(this.groupControl6);
            this.panelControl3.Controls.Add(this.groupControl5);
            this.panelControl3.Dock = DockStyle.Right;
            this.panelControl3.Location = new Point(0x2ef, 0);
            this.panelControl3.Name = "panelControl3";
            this.panelControl3.Size = new Size(0xca, 0x246);
            this.panelControl3.TabIndex = 7;
            this.groupControl6.Controls.Add(this.grdSPQK);
            this.groupControl6.Dock = DockStyle.Fill;
            this.groupControl6.Location = new Point(2, 2);
            this.groupControl6.Name = "groupControl6";
            this.groupControl6.Size = new Size(0xc6, 0x11a);
            this.groupControl6.TabIndex = 6;
            this.groupControl6.Text = "详细信息";
            this.grdSPQK.DataMember = null;
            this.grdSPQK.DataSource = this.bindingSource8;
            this.grdSPQK.Dock = DockStyle.Fill;
            this.grdSPQK.Location = new Point(2, 0x17);
            this.grdSPQK.MainView = this.gridView5;
            this.grdSPQK.Name = "grdSPQK";
            this.grdSPQK.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemTextEdit1 });
            this.grdSPQK.Size = new Size(0xc2, 0x101);
            this.grdSPQK.TabIndex = 4;
            this.grdSPQK.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView5 });
            this.bindingSource8.DataMember = "JLQD";
            this.gridView5.Columns.AddRange(new GridColumn[] { this.gridColumn5, this.gridColumn6, this.colBL });
            this.gridView5.GridControl = this.grdSPQK;
            this.gridView5.Name = "gridView5";
            this.gridView5.OptionsBehavior.ReadOnly = true;
            this.gridView5.OptionsCustomization.AllowSort = false;
            this.gridView5.OptionsView.ColumnAutoWidth = false;
            this.gridView5.OptionsView.ShowGroupPanel = false;
            this.gridView5.OptionsView.ShowHorzLines = false;
            this.gridView5.OptionsView.ShowIndicator = false;
            this.gridView5.OptionsView.ShowVertLines = false;
            this.gridView5.CustomDrawCell += new RowCellCustomDrawEventHandler(this.gridView5_CustomDrawCell);
            this.gridView5.RowCellStyle += new RowCellStyleEventHandler(this.gridView5_RowCellStyle);
            this.gridColumn5.Caption = " ";
            this.gridColumn5.FieldName = "MC";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 0;
            this.gridColumn5.Width = 0x47;
            this.gridColumn6.Caption = "数量";
            this.gridColumn6.FieldName = "SL";
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.OptionsColumn.AllowEdit = false;
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 1;
            this.gridColumn6.Width = 0x33;
            this.colBL.Caption = "占比%";
            this.colBL.ColumnEdit = this.repositoryItemTextEdit1;
            this.colBL.FieldName = "BL";
            this.colBL.Name = "colBL";
            this.colBL.OptionsColumn.AllowEdit = false;
            this.colBL.Visible = true;
            this.colBL.VisibleIndex = 2;
            this.colBL.Width = 0x38;
            this.repositoryItemTextEdit1.AutoHeight = false;
            this.repositoryItemTextEdit1.DisplayFormat.FormatString = "0.00";
            this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric;
            this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1";
            this.groupControl5.Controls.Add(this.gridControl2);
            this.groupControl5.Dock = DockStyle.Bottom;
            this.groupControl5.Location = new Point(2, 0x11c);
            this.groupControl5.Name = "groupControl5";
            this.groupControl5.Size = new Size(0xc6, 0x128);
            this.groupControl5.TabIndex = 5;
            this.groupControl5.Text = "过程数据";
            this.gridControl2.DataMember = null;
            this.gridControl2.DataSource = this.bindingSource7;
            this.gridControl2.Dock = DockStyle.Fill;
            this.gridControl2.Location = new Point(2, 0x17);
            this.gridControl2.MainView = this.gridView3;
            this.gridControl2.Name = "gridControl2";
            this.gridControl2.Size = new Size(0xc2, 0x10f);
            this.gridControl2.TabIndex = 3;
            this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView3 });
            this.bindingSource7.DataSource = base.ds;
            this.bindingSource7.Position = 0;
            this.gridView3.Columns.AddRange(new GridColumn[] { this.colMC, this.colSL });
            this.gridView3.GridControl = this.gridControl2;
            this.gridView3.Name = "gridView3";
            this.gridView3.OptionsBehavior.ReadOnly = true;
            this.gridView3.OptionsView.ShowColumnHeaders = false;
            this.gridView3.OptionsView.ShowGroupPanel = false;
            this.colMC.Caption = " ";
            this.colMC.FieldName = "MC";
            this.colMC.Name = "colMC";
            this.colMC.Visible = true;
            this.colMC.VisibleIndex = 0;
            this.colMC.Width = 0x90;
            this.colSL.Caption = " ";
            this.colSL.FieldName = "sl";
            this.colSL.Name = "colSL";
            this.colSL.Visible = true;
            this.colSL.VisibleIndex = 1;
            this.colSL.Width = 0x55;
            this.bindingSource3.DataMember = "GCLCT";
            this.bindingSource3.DataSource = this.dataSets1;
            this.xtraTabControl2.Dock = DockStyle.Fill;
            this.xtraTabControl2.Location = new Point(0x137, 0);
            this.xtraTabControl2.LookAndFeel.UseDefaultLookAndFeel = false;
            this.xtraTabControl2.LookAndFeel.UseWindowsXPTheme = true;
            this.xtraTabControl2.Name = "xtraTabControl2";
            this.xtraTabControl2.SelectedTabPage = this.xtraTabPage4;
            this.xtraTabControl2.Size = new Size(0x3c1, 0x264);
            this.xtraTabControl2.TabIndex = 8;
            this.xtraTabControl2.TabPages.AddRange(new XtraTabPage[] { this.xtraTabPage3, this.xtraTabPage4 });
            this.xtraTabControl2.SelectedPageChanged += new TabPageChangedEventHandler(this.xtraTabControl2_SelectedPageChanged);
            this.xtraTabPage4.Controls.Add(this.panelControl2);
            this.xtraTabPage4.Controls.Add(this.panelControl7);
            this.xtraTabPage4.Controls.Add(this.splitterControl1);
            this.xtraTabPage4.Controls.Add(this.panelControl3);
            this.xtraTabPage4.Name = "xtraTabPage4";
            this.xtraTabPage4.Size = new Size(0x3b9, 0x246);
            this.xtraTabPage4.Text = "编辑";
            this.panelControl7.Controls.Add(this.bindingNavigator2);
            this.panelControl7.Dock = DockStyle.Top;
            this.panelControl7.Location = new Point(0, 0);
            this.panelControl7.Name = "panelControl7";
            this.panelControl7.Size = new Size(0x2e9, 0x1d);
            this.panelControl7.TabIndex = 13;
            this.bindingNavigator2.AddNewItem = null;
            this.bindingNavigator2.AutoSize = false;
            this.bindingNavigator2.BindingSource = this.bindingSource;
            this.bindingNavigator2.CanOverflow = false;
            this.bindingNavigator2.CountItem = this.toolStripLabel1;
            this.bindingNavigator2.DeleteItem = null;
            this.bindingNavigator2.Items.AddRange(new ToolStripItem[] { 
                this.toolStripButton4, this.toolStripButton5, this.toolStripSeparator1, this.toolStripTextBox1, this.toolStripLabel1, this.toolStripSeparator2, this.toolStripButton6, this.toolStripButton7, this.toolStripSeparator3, this.toolStripButton8, this.toolStripSeparator4, this.toolStripButton1, this.toolStripSeparator7, this.toolStripButton9, this.toolStripSeparator5, this.toolStripButton10,
                this.toolStripSeparator6,tsbOrder
             });
            this.bindingNavigator2.Location = new Point(2, 2);
            this.bindingNavigator2.MoveFirstItem = this.toolStripButton4;
            this.bindingNavigator2.MoveLastItem = this.toolStripButton7;
            this.bindingNavigator2.MoveNextItem = this.toolStripButton6;
            this.bindingNavigator2.MovePreviousItem = this.toolStripButton5;
            this.bindingNavigator2.Name = "bindingNavigator2";
            this.bindingNavigator2.PositionItem = this.toolStripTextBox1;
            this.bindingNavigator2.RenderMode = ToolStripRenderMode.System;
            this.bindingNavigator2.ShowItemToolTips = false;
            this.bindingNavigator2.Size = new Size(0x2e5, 0x19);
            this.bindingNavigator2.TabIndex = 0x11;
            this.bindingNavigator2.Text = "bindingNavigator2";
            this.toolStripLabel1.Name = "toolStripLabel1";
            this.toolStripLabel1.Size = new Size(0x20, 0x16);
            this.toolStripLabel1.Text = "/ {0}";
            this.toolStripLabel1.ToolTipText = "总项数";
            this.toolStripButton4.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.toolStripButton4.Image = (Image)resources.GetObject("toolStripButton4.Image");
            this.toolStripButton4.Name = "toolStripButton4";
            this.toolStripButton4.RightToLeftAutoMirrorImage = true;
            this.toolStripButton4.Size = new Size(0x17, 0x16);
            this.toolStripButton4.Tag = "-3";
            this.toolStripButton4.Text = "移到第一条记录";
            this.toolStripButton5.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.toolStripButton5.Image = (Image)resources.GetObject("toolStripButton5.Image");
            this.toolStripButton5.Name = "toolStripButton5";
            this.toolStripButton5.RightToLeftAutoMirrorImage = true;
            this.toolStripButton5.Size = new Size(0x17, 0x16);
            this.toolStripButton5.Tag = "-3";
            this.toolStripButton5.Text = "移到上一条记录";
            this.toolStripButton5.TextAlign = ContentAlignment.TopCenter;
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new Size(6, 0x19);
            this.toolStripTextBox1.AccessibleName = "位置";
            this.toolStripTextBox1.AutoSize = false;
            this.toolStripTextBox1.Name = "toolStripTextBox1";
            this.toolStripTextBox1.Size = new Size(50, 0x15);
            this.toolStripTextBox1.Tag = "-3";
            this.toolStripTextBox1.Text = "0";
            this.toolStripTextBox1.ToolTipText = "当前位置";
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new Size(6, 0x19);
            this.toolStripButton6.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.toolStripButton6.Image = (Image)resources.GetObject("toolStripButton6.Image");
            this.toolStripButton6.Name = "toolStripButton6";
            this.toolStripButton6.RightToLeftAutoMirrorImage = true;
            this.toolStripButton6.Size = new Size(0x17, 0x16);
            this.toolStripButton6.Tag = "-3";
            this.toolStripButton6.Text = "移到下一条记录";
            this.toolStripButton6.TextDirection = ToolStripTextDirection.Horizontal;
            this.toolStripButton7.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.toolStripButton7.Image = (Image)resources.GetObject("toolStripButton7.Image");
            this.toolStripButton7.Name = "toolStripButton7";
            this.toolStripButton7.RightToLeftAutoMirrorImage = true;
            this.toolStripButton7.Size = new Size(0x17, 0x16);
            this.toolStripButton7.Tag = "-3";
            this.toolStripButton7.Text = "移到最后一条记录";
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new Size(6, 0x19);
            this.toolStripButton8.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.toolStripButton8.Image = (Image)resources.GetObject("toolStripButton8.Image");
            this.toolStripButton8.ImageTransparentColor = Color.Magenta;
            this.toolStripButton8.Name = "toolStripButton8";
            this.toolStripButton8.Size = new Size(0x24, 0x16);
            this.toolStripButton8.Tag = "-1";
            this.toolStripButton8.Text = "新建";
            this.toolStripButton8.Click += new EventHandler(this.toolStripButton8_Click);
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new Size(6, 0x19);
            this.toolStripButton1.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.toolStripButton1.Image = (Image)resources.GetObject("toolStripButton1.Image");
            this.toolStripButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new Size(0x24, 0x16);
            this.toolStripButton1.Tag = "-1";
            this.toolStripButton1.Text = "删除";
            this.toolStripButton1.Click += new EventHandler(this.toolStripButton1_Click);
            this.toolStripSeparator7.Name = "toolStripSeparator7";
            this.toolStripSeparator7.Size = new Size(6, 0x19);
            this.toolStripButton9.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.toolStripButton9.Image = (Image)resources.GetObject("toolStripButton9.Image");
            this.toolStripButton9.ImageTransparentColor = Color.Magenta;
            this.toolStripButton9.Name = "toolStripButton9";
            this.toolStripButton9.Size = new Size(60, 0x16);
            this.toolStripButton9.Tag = "-1";
            this.toolStripButton9.Text = "复制新建";
            this.toolStripButton9.Click += new EventHandler(this.toolStripButton9_Click);
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new Size(6, 0x19);
            this.toolStripButton10.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.toolStripButton10.Image = (Image)resources.GetObject("toolStripButton10.Image");
            this.toolStripButton10.ImageTransparentColor = Color.Magenta;
            this.toolStripButton10.Name = "toolStripButton10";
            this.toolStripButton10.Size = new Size(60, 0x16);
            this.toolStripButton10.Tag = "-2";
            this.toolStripButton10.Text = "过程数据";
            this.toolStripButton10.Click += new EventHandler(this.toolStripButton10_Click);
            this.tsbOrder.DisplayStyle = ToolStripItemDisplayStyle.Text;
            this.tsbOrder.Image = (Image)resources.GetObject("tsbOrder.Image");
            this.tsbOrder.ImageTransparentColor = Color.Magenta;
            this.tsbOrder.Name = "tsbOrder";
            this.tsbOrder.Size = new Size(60, 0x16);
            this.tsbOrder.Tag = "-2";
            this.tsbOrder.Text = "排序";
            this.tsbOrder.Click += tsbOrder_Click;
            this.toolStripSeparator6.Name = "toolStripSeparator6";
            this.toolStripSeparator6.Size = new Size(6, 0x19);
            this.splitterControl1.Dock = DockStyle.Right;
            this.splitterControl1.Location = new Point(0x2e9, 0);
            this.splitterControl1.Name = "splitterControl1";
            this.splitterControl1.Size = new Size(6, 0x246);
            this.splitterControl1.TabIndex = 0x15;
            this.splitterControl1.TabStop = false;
            this.xtraTabPage3.Controls.Add(this.gridQDJL_CT);
            this.xtraTabPage3.Controls.Add(this.panelControl1);
            this.xtraTabPage3.Controls.Add(this.panelControl5);
            this.xtraTabPage3.Name = "xtraTabPage3";
            this.xtraTabPage3.Size = new Size(0x3b9, 0x246);
            this.xtraTabPage3.Text = "一览";
            this.gridQDJL_CT.DataSource = this.bindingSource1;
            this.gridQDJL_CT.Dock = DockStyle.Fill;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.NextPage.Visible = false;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
            this.gridQDJL_CT.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gridQDJL_CT.Location = new Point(0, 0x21);
            this.gridQDJL_CT.MainView = this.cardView3;
            this.gridQDJL_CT.Name = "gridQDJL_CT";
            this.gridQDJL_CT.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemPictureEdit2 });
            this.gridQDJL_CT.Size = new Size(0x2aa, 0x225);
            this.gridQDJL_CT.TabIndex = 3;
            this.gridQDJL_CT.ToolTipController = this.toolTipController;
            this.gridQDJL_CT.UseEmbeddedNavigator = true;
            this.gridQDJL_CT.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.cardView3 });
            this.gridQDJL_CT.DoubleClick += new EventHandler(this.gridQDJL_CT_DoubleClick);
            this.bindingSource1.DataSource = this.dataSets1;
            this.bindingSource1.Position = 0;
            this.cardView3.CardInterval = 4;
            this.cardView3.Columns.AddRange(new GridColumn[] { this.colQQZH, this.colTZBH, this.colBW, this.colPZBH, this.colCT1 });
            this.cardView3.FocusedCardTopFieldIndex = 0;
            this.cardView3.GridControl = this.gridQDJL_CT;
            this.cardView3.Name = "cardView3";
            this.cardView3.OptionsBehavior.Editable = false;
            this.cardView3.OptionsBehavior.FieldAutoHeight = true;
            this.cardView3.OptionsView.ShowCardCaption = false;
            this.cardView3.OptionsView.ShowQuickCustomizeButton = false;
            this.cardView3.VertScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
            this.cardView3.MouseMove += new MouseEventHandler(this.cardView3_MouseMove);
            this.cardView3.Click += new EventHandler(this.cardView3_Click);
            this.cardView3.DoubleClick += new EventHandler(this.cardView3_DoubleClick);
            this.colQQZH.FieldName = "QQZH";
            this.colQQZH.Name = "colQQZH";
            this.colTZBH.FieldName = "TZBH";
            this.colTZBH.Name = "colTZBH";
            this.colBW.FieldName = "BW";
            this.colBW.Name = "colBW";
            this.colPZBH.Caption = "凭证编号";
            this.colPZBH.FieldName = "PZBH";
            this.colPZBH.Name = "colPZBH";
            this.colPZBH.Visible = true;
            this.colPZBH.VisibleIndex = 1;
            this.colCT1.Caption = "草图";
            this.colCT1.ColumnEdit = this.repositoryItemPictureEdit2;
            this.colCT1.FieldName = "CT";
            this.colCT1.Name = "colCT1";
            this.colCT1.Visible = true;
            this.colCT1.VisibleIndex = 0;
            this.repositoryItemPictureEdit2.Name = "repositoryItemPictureEdit2";
            this.toolTipController.AllowHtmlText = true;
            this.toolTipController.ToolTipType = ToolTipType.SuperTip;
            this.panelControl1.Controls.Add(this.panelControl8);
            this.panelControl1.Dock = DockStyle.Right;
            this.panelControl1.Location = new Point(0x2aa, 0x21);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x10f, 0x225);
            this.panelControl1.TabIndex = 7;
            this.panelControl8.Controls.Add(this.gridControl4);
            this.panelControl8.Controls.Add(this.layoutControl2);
            this.panelControl8.Controls.Add(this.groupControl1);
            this.panelControl8.Dock = DockStyle.Fill;
            this.panelControl8.Location = new Point(2, 2);
            this.panelControl8.Name = "panelControl8";
            this.panelControl8.Size = new Size(0x10b, 0x221);
            this.panelControl8.TabIndex = 7;
            this.gridControl4.DataMember = null;
            this.gridControl4.DataSource = this.bindingSource2;
            this.gridControl4.Dock = DockStyle.Fill;
            this.gridControl4.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.Next.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.NextPage.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.Prev.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
            this.gridControl4.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gridControl4.EmbeddedNavigator.CustomButtons.AddRange(new NavigatorCustomButton[] { new NavigatorCustomButton(-1, 6, true, true, "添加", "Add"), new NavigatorCustomButton(-1, 7, true, true, "删除", "Del") });
            this.gridControl4.EmbeddedNavigator.TextLocation = NavigatorButtonsTextLocation.None;
            this.gridControl4.EmbeddedNavigator.TextStringFormat = "记录数 {0} of {1}";
            this.gridControl4.EmbeddedNavigator.ButtonClick += new NavigatorButtonClickEventHandler(this.method20);
            this.gridControl4.Location = new Point(2, 0x84);
            this.gridControl4.MainView = this.gridView4;
            this.gridControl4.Name = "gridControl4";
            this.gridControl4.Size = new Size(0x107, 0xe5);
            this.gridControl4.TabIndex = 2;
            this.gridControl4.Tag = "";
            this.gridControl4.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView4 });
            this.gridView4.Columns.AddRange(new GridColumn[] { this.gridColumn1, this.gridColumn2, this.gridColumn3, this.gridColumn4 });
            this.gridView4.GridControl = this.gridControl4;
            this.gridView4.Name = "gridView4";
            this.gridView4.OptionsCustomization.AllowFilter = false;
            this.gridView4.OptionsCustomization.AllowGroup = false;
            this.gridView4.OptionsNavigation.EnterMoveNextColumn = true;
            this.gridView4.OptionsView.ShowGroupPanel = false;
            this.gridColumn1.Caption = "清单编号";
            this.gridColumn1.FieldName = "QDBH";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.OptionsColumn.AllowEdit = false;
            this.gridColumn1.OptionsColumn.ReadOnly = true;
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn1.Width = 0x40;
            this.gridColumn2.Caption = "项目名称";
            this.gridColumn2.FieldName = "QDMC";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.OptionsColumn.AllowEdit = false;
            this.gridColumn2.OptionsColumn.ReadOnly = true;
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gridColumn2.Width = 0x4a;
            this.gridColumn3.Caption = "单位";
            this.gridColumn3.FieldName = "DW";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowEdit = false;
            this.gridColumn3.OptionsColumn.ReadOnly = true;
            this.gridColumn3.Visible = true;
            this.gridColumn3.VisibleIndex = 2;
            this.gridColumn3.Width = 0x22;
            this.gridColumn4.Caption = "计量数量";
            this.gridColumn4.FieldName = "BQJLS";
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.Visible = true;
            this.gridColumn4.VisibleIndex = 3;
            this.gridColumn4.Width = 0x43;
            this.layoutControl2.Controls.Add(this.iAnFljdXyH);
            this.layoutControl2.Controls.Add(this.textEdit2);
            this.layoutControl2.Controls.Add(this.textEdit3);
            this.layoutControl2.Controls.Add(this.textEdit4);
            this.layoutControl2.Controls.Add(this.textEdit5);
            this.layoutControl2.Controls.Add(this.checkEdit1);
            this.layoutControl2.Dock = DockStyle.Top;
            this.layoutControl2.HiddenItems.AddRange(new BaseLayoutItem[] { this.layoutControlItem61 });
            this.layoutControl2.Location = new Point(2, 2);
            this.layoutControl2.Name = "layoutControl2";
            this.layoutControl2.Root = this.layoutControlGroup11;
            this.layoutControl2.Size = new Size(0x107, 130);
            this.layoutControl2.TabIndex = 15;
            this.layoutControl2.Text = "layoutControl2";
            this.iAnFljdXyH.Location = new Point(0x6f, 2);
            this.iAnFljdXyH.Name = "panelControl10";
            this.iAnFljdXyH.Size = new Size(0xa7, 20);
            this.iAnFljdXyH.TabIndex = 0x10;
            this.textEdit2.DataBindings.Add(new Binding("EditValue", this.bindingSource, "PZBH", true));
            this.textEdit2.Location = new Point(0x35, 0x19);
            this.textEdit2.Name = "textEdit2";
            this.textEdit2.Properties.ReadOnly = true;
            this.textEdit2.Size = new Size(0xd0, 0x15);
            this.textEdit2.StyleController = this.layoutControl2;
            this.textEdit2.TabIndex = 0;
            this.textEdit3.DataBindings.Add(new Binding("EditValue", this.bindingSource, "BW", true));
            this.textEdit3.Location = new Point(0x35, 100);
            this.textEdit3.Name = "textEdit3";
            this.textEdit3.Properties.ReadOnly = true;
            this.textEdit3.Size = new Size(0xd0, 0x15);
            this.textEdit3.StyleController = this.layoutControl2;
            this.textEdit3.TabIndex = 10;
            this.textEdit4.DataBindings.Add(new Binding("EditValue", this.bindingSource, "QQZH", true));
            this.textEdit4.Location = new Point(0x35, 50);
            this.textEdit4.Name = "textEdit4";
            this.textEdit4.Properties.ReadOnly = true;
            this.textEdit4.Size = new Size(0xd0, 0x15);
            this.textEdit4.StyleController = this.layoutControl2;
            this.textEdit4.TabIndex = 8;
            this.textEdit5.DataBindings.Add(new Binding("EditValue", this.bindingSource, "TZBH", true));
            this.textEdit5.Location = new Point(0x35, 0x4b);
            this.textEdit5.Name = "textEdit5";
            this.textEdit5.Properties.ReadOnly = true;
            this.textEdit5.Size = new Size(0xd0, 0x15);
            this.textEdit5.StyleController = this.layoutControl2;
            this.textEdit5.TabIndex = 9;
            this.checkEdit1.DataBindings.Add(new Binding("EditValue", this.bindingSource, "TYSB", true));
            this.checkEdit1.EditValue = 0;
            this.checkEdit1.Location = new Point(2, 2);
            this.checkEdit1.Name = "checkEdit1";
            this.checkEdit1.Properties.Caption = "同意上报";
            this.checkEdit1.Properties.DisplayValueChecked = "1";
            this.checkEdit1.Properties.DisplayValueUnchecked = "0";
            this.checkEdit1.Properties.EditValueChangedFiringMode = EditValueChangedFiringMode.Buffered;
            this.checkEdit1.Properties.ReadOnly = true;
            this.checkEdit1.Properties.ValueChecked = 1;
            this.checkEdit1.Properties.ValueUnchecked = 0;
            this.checkEdit1.Size = new Size(0x103, 0x13);
            this.checkEdit1.StyleController = this.layoutControl2;
            this.checkEdit1.TabIndex = 15;
            this.checkEdit1.Tag = "-1";
            this.layoutControlItem61.Control = this.iAnFljdXyH;
            this.layoutControlItem61.CustomizationFormText = "layoutControlItem6";
            this.layoutControlItem61.Location = new Point(0, 0);
            this.layoutControlItem61.Name = "layoutControlItem6";
            this.layoutControlItem61.Size = new Size(280, 0x18);
            this.layoutControlItem61.Text = "layoutControlItem6";
            this.layoutControlItem61.TextSize = new Size(50, 20);
            this.layoutControlItem61.TextToControlDistance = 5;
            this.layoutControlGroup11.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup11.EnableIndentsWithoutBorders = DefaultBoolean.False;
            this.layoutControlGroup11.GroupBordersVisible = false;
            this.layoutControlGroup11.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem11, this.layoutControlItem31, this.layoutControlItem71, this.layoutControlItem21, this.layoutControlItem41 });
            this.layoutControlGroup11.Location = new Point(0, 0);
            this.layoutControlGroup11.Name = "layoutControlGroup1";
            this.layoutControlGroup11.Size = new Size(0x107, 130);
            this.layoutControlGroup11.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup11.Text = "layoutControlGroup1";
            this.layoutControlGroup11.TextVisible = false;
            this.layoutControlItem11.Control = this.textEdit2;
            this.layoutControlItem11.CustomizationFormText = "凭证编号";
            this.layoutControlItem11.Location = new Point(0, 0x17);
            this.layoutControlItem11.Name = "layoutControlItem1";
            this.layoutControlItem11.Size = new Size(0x107, 0x19);
            this.layoutControlItem11.Text = "凭证编号";
            this.layoutControlItem11.TextSize = new Size(0x30, 14);
            this.layoutControlItem31.Control = this.textEdit5;
            this.layoutControlItem31.CustomizationFormText = "图纸编号";
            this.layoutControlItem31.Location = new Point(0, 0x49);
            this.layoutControlItem31.Name = "layoutControlItem3";
            this.layoutControlItem31.Size = new Size(0x107, 0x19);
            this.layoutControlItem31.Text = "图纸编号";
            this.layoutControlItem31.TextSize = new Size(0x30, 14);
            this.layoutControlItem71.Control = this.checkEdit1;
            this.layoutControlItem71.CustomizationFormText = "layoutControlItem7";
            this.layoutControlItem71.Location = new Point(0, 0);
            this.layoutControlItem71.Name = "layoutControlItem7";
            this.layoutControlItem71.Size = new Size(0x107, 0x17);
            this.layoutControlItem71.Text = "layoutControlItem7";
            this.layoutControlItem71.TextSize = new Size(0, 0);
            this.layoutControlItem71.TextToControlDistance = 0;
            this.layoutControlItem71.TextVisible = false;
            this.layoutControlItem21.Control = this.textEdit4;
            this.layoutControlItem21.CustomizationFormText = "起讫桩号";
            this.layoutControlItem21.Location = new Point(0, 0x30);
            this.layoutControlItem21.Name = "layoutControlItem2";
            this.layoutControlItem21.Size = new Size(0x107, 0x19);
            this.layoutControlItem21.Text = "起讫桩号";
            this.layoutControlItem21.TextSize = new Size(0x30, 14);
            this.layoutControlItem41.Control = this.textEdit3;
            this.layoutControlItem41.CustomizationFormText = "部位";
            this.layoutControlItem41.Location = new Point(0, 0x62);
            this.layoutControlItem41.Name = "layoutControlItem4";
            this.layoutControlItem41.Size = new Size(0x107, 0x20);
            this.layoutControlItem41.Text = "部位";
            this.layoutControlItem41.TextSize = new Size(0x30, 14);
            this.groupControl1.Controls.Add(this.gridControl5);
            this.groupControl1.Dock = DockStyle.Bottom;
            this.groupControl1.Location = new Point(2, 0x169);
            this.groupControl1.Name = "groupControl1";
            this.groupControl1.Size = new Size(0x107, 0xb6);
            this.groupControl1.TabIndex = 0x10;
            this.groupControl1.Text = "详细信息";
            this.gridControl5.DataMember = null;
            this.gridControl5.DataSource = this.bindingSource8;
            this.gridControl5.Dock = DockStyle.Fill;
            this.gridControl5.Location = new Point(2, 0x17);
            this.gridControl5.MainView = this.gridView6;
            this.gridControl5.Name = "gridControl5";
            this.gridControl5.Size = new Size(0x103, 0x9d);
            this.gridControl5.TabIndex = 4;
            this.gridControl5.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView6 });
            this.gridView6.Columns.AddRange(new GridColumn[] { this.gridColumn7, this.gridColumn8, this.gridColumn9 });
            this.gridView6.GridControl = this.gridControl5;
            this.gridView6.Name = "gridView6";
            this.gridView6.OptionsBehavior.ReadOnly = true;
            this.gridView6.OptionsView.ColumnAutoWidth = false;
            this.gridView6.OptionsView.ShowColumnHeaders = false;
            this.gridView6.OptionsView.ShowGroupPanel = false;
            this.gridView6.OptionsView.ShowHorzLines = false;
            this.gridView6.OptionsView.ShowIndicator = false;
            this.gridView6.OptionsView.ShowVertLines = false;
            this.gridView6.RowCellStyle += new RowCellStyleEventHandler(this.gridView6_RowCellStyle);
            this.gridColumn7.Caption = " ";
            this.gridColumn7.FieldName = "MC";
            this.gridColumn7.Name = "gridColumn7";
            this.gridColumn7.Visible = true;
            this.gridColumn7.VisibleIndex = 0;
            this.gridColumn7.Width = 0x47;
            this.gridColumn8.Caption = "数量";
            this.gridColumn8.DisplayFormat.FormatString = "0.000";
            this.gridColumn8.DisplayFormat.FormatType = FormatType.Numeric;
            this.gridColumn8.FieldName = "SL";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 1;
            this.gridColumn8.Width = 120;
            this.gridColumn9.Caption = "占比%";
            this.gridColumn9.DisplayFormat.FormatString = "0.00";
            this.gridColumn9.DisplayFormat.FormatType = FormatType.Numeric;
            this.gridColumn9.FieldName = "BL";
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 2;
            this.gridColumn9.Width = 0x38;
            this.panelControl5.Controls.Add(this.buttonEdit);
            this.panelControl5.Dock = DockStyle.Top;
            this.panelControl5.Location = new Point(0, 0);
            this.panelControl5.Name = "panelControl5";
            this.panelControl5.Size = new Size(0x3b9, 0x21);
            this.panelControl5.TabIndex = 6;
            this.buttonEdit.Location = new Point(5, 7);
            this.buttonEdit.Name = "btnSearchPJ";
            this.buttonEdit.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Close) });
            this.buttonEdit.Size = new Size(0xd5, 0x15);
            this.buttonEdit.TabIndex = 4;
            this.buttonEdit.Tag = "-1";
            this.buttonEdit.ButtonClick += new ButtonPressedEventHandler(this.buttonEdit_ButtonClick);
            this.buttonEdit.KeyPress += new KeyPressEventHandler(this.buttonEdit_KeyPress);
            this.bindingSource5.DataSource = this.dataSets1;
            this.bindingSource5.Position = 0;
            this.dockManager.Form = this;
            this.dockManager.HiddenPanels.AddRange(new DockPanel[] { this.dockPanel3, this.dockPanel2 });
            this.dockManager.RootPanels.AddRange(new DockPanel[] { this.dockPanel1 });
            this.dockManager.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.dockPanel3.Controls.Add(this.dockPanel3_Container);
            this.dockPanel3.Dock = DockingStyle.Right;
            this.dockPanel3.ID = new Guid("1c77ef95-18f8-42ac-b326-da1a6c718ce8");
            this.dockPanel3.Location = new Point(0x17a, 0);
            this.dockPanel3.Name = "dockPanel3";
            this.dockPanel3.OriginalSize = new Size(200, 200);
            this.dockPanel3.SavedDock = DockingStyle.Right;
            this.dockPanel3.SavedIndex = 2;
            this.dockPanel3.Size = new Size(200, 0x264);
            this.dockPanel3.Text = "dockPanel3";
            this.dockPanel3.Visibility = DockVisibility.Hidden;
            this.dockPanel3_Container.Location = new Point(3, 0x19);
            this.dockPanel3_Container.Name = "dockPanel3_Container";
            this.dockPanel3_Container.Size = new Size(0xc2, 0x248);
            this.dockPanel3_Container.TabIndex = 0;
            this.dockPanel2.Controls.Add(this.dockPanel2_Container);
            this.dockPanel2.Dock = DockingStyle.Right;
            this.dockPanel2.ID = new Guid("093072fb-a98f-4469-a3a3-bd1c06255994");
            this.dockPanel2.Location = new Point(0x242, 0);
            this.dockPanel2.Name = "dockPanel2";
            this.dockPanel2.OriginalSize = new Size(0x1d5, 200);
            this.dockPanel2.SavedDock = DockingStyle.Right;
            this.dockPanel2.SavedIndex = 0;
            this.dockPanel2.Size = new Size(0x1d5, 0x264);
            this.dockPanel2.Text = "dockPanel2";
            this.dockPanel2.Visibility = DockVisibility.Hidden;
            this.dockPanel2_Container.Location = new Point(3, 0x19);
            this.dockPanel2_Container.Name = "dockPanel2_Container";
            this.dockPanel2_Container.Size = new Size(0x1cf, 0x248);
            this.dockPanel2_Container.TabIndex = 0;
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("cc5200cd-daf8-41ec-a5ba-d1ff91475a5e");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.Options.ShowCloseButton = false;
            this.dockPanel1.OriginalSize = new Size(0x137, 200);
            this.dockPanel1.Size = new Size(0x137, 0x264);
            this.dockPanel1.Text = "清单信息";
            this.dockPanel1_Container.Controls.Add(this.trJLQD);
            this.dockPanel1_Container.Controls.Add(this.radioGroup);
            this.dockPanel1_Container.Location = new Point(3, 0x19);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x131, 0x248);
            this.dockPanel1_Container.TabIndex = 0;
            this.trJLQD.Columns.AddRange(new TreeListColumn[] { this.colID, this.colQDBH1, this.colCBMC, this.colHTSL, this.colsgtsl, this.colZBDJ, this.colHTJE, this.mdicuckivT, this.colQDDW, this.colbqmjls, this.colbqmjlje, this.colwcbl });
            this.trJLQD.DataSource = this.bindingSource6;
            this.trJLQD.Dock = DockStyle.Fill;
            this.trJLQD.ImageIndexFieldName = "QDLX";
            this.trJLQD.Location = new Point(0, 0x21);
            this.trJLQD.Name = "trJLQD";
            this.trJLQD.OptionsBehavior.Editable = false;
            this.trJLQD.OptionsView.AutoWidth = false;
            this.trJLQD.OptionsView.ShowIndicator = false;
            this.trJLQD.ParentFieldName = "PID";
            this.trJLQD.PreviewFieldName = "QDMC";
            this.trJLQD.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemImageComboBox2 });
            this.trJLQD.Size = new Size(0x131, 0x227);
            this.trJLQD.TabIndex = 10;
            this.trJLQD.TreeLineStyle = LineStyle.None;
            this.trJLQD.CustomDrawNodeCell += new CustomDrawNodeCellEventHandler(this.trJLQD_CustomDrawNodeCell);
            this.trJLQD.DoubleClick += new EventHandler(this.trJLQD_DoubleClick);
            this.colID.FieldName = "ID";
            this.colID.Name = "colID";
            this.colQDBH1.Caption = "编号";
            this.colQDBH1.FieldName = "QDBH";
            this.colQDBH1.Name = "colQDBH1";
            this.colQDBH1.OptionsColumn.AllowSort = false;
            this.colQDBH1.Visible = true;
            this.colQDBH1.VisibleIndex = 0;
            this.colQDBH1.Width = 0x35;
            this.colCBMC.Caption = "清单名称";
            this.colCBMC.FieldName = "QDMC";
            this.colCBMC.Name = "colCBMC";
            this.colCBMC.OptionsColumn.AllowSort = false;
            this.colCBMC.Visible = true;
            this.colCBMC.VisibleIndex = 1;
            this.colCBMC.Width = 0x66;
            this.colHTSL.Caption = "原合同量";
            this.colHTSL.FieldName = "HTSL";
            this.colHTSL.Format.FormatType = FormatType.Numeric;
            this.colHTSL.Name = "colHTSL";
            this.colHTSL.OptionsColumn.AllowSort = false;
            this.colHTSL.Visible = true;
            this.colHTSL.VisibleIndex = 2;
            this.colHTSL.Width = 0x3d;
            this.colsgtsl.Caption = "施工图数量";
            this.colsgtsl.FieldName = "SGTSL";
            this.colsgtsl.Name = "colsgtsl";
            this.colsgtsl.OptionsColumn.AllowSort = false;
            this.colsgtsl.Visible = true;
            this.colsgtsl.VisibleIndex = 3;
            this.colZBDJ.Caption = "单价";
            this.colZBDJ.FieldName = "ZBDJ";
            this.colZBDJ.Name = "colZBDJ";
            this.colZBDJ.OptionsColumn.AllowSort = false;
            this.colZBDJ.Visible = true;
            this.colZBDJ.VisibleIndex = 4;
            this.colZBDJ.Width = 0x30;
            this.colHTJE.Caption = "原合同金额";
            this.colHTJE.FieldName = "HTJE";
            this.colHTJE.Name = "colHTJE";
            this.colHTJE.OptionsColumn.AllowSort = false;
            this.colHTJE.Visible = true;
            this.colHTJE.VisibleIndex = 5;
            this.colHTJE.Width = 0x4e;
            this.mdicuckivT.Caption = "施工图金额";
            this.mdicuckivT.FieldName = "SGTJE";
            this.mdicuckivT.Name = "colsgtje";
            this.mdicuckivT.OptionsColumn.AllowSort = false;
            this.mdicuckivT.Visible = true;
            this.mdicuckivT.VisibleIndex = 6;
            this.colQDDW.Caption = "单位";
            this.colQDDW.FieldName = "DW";
            this.colQDDW.Name = "colQDDW";
            this.colQDDW.OptionsColumn.AllowSort = false;
            this.colQDDW.Visible = true;
            this.colQDDW.VisibleIndex = 7;
            this.colQDDW.Width = 0x24;
            this.colbqmjls.Caption = "已完成量";
            this.colbqmjls.FieldName = "bqmjls";
            this.colbqmjls.Name = "colbqmjls";
            this.colbqmjls.OptionsColumn.AllowSort = false;
            this.colbqmjls.Visible = true;
            this.colbqmjls.VisibleIndex = 8;
            this.colbqmjls.Width = 0x3b;
            this.colbqmjlje.Caption = "已完成额";
            this.colbqmjlje.FieldName = "bqmjlje";
            this.colbqmjlje.Name = "colbqmjlje";
            this.colbqmjlje.OptionsColumn.AllowSort = false;
            this.colbqmjlje.Visible = true;
            this.colbqmjlje.VisibleIndex = 9;
            this.colbqmjlje.Width = 0x3b;
            this.colwcbl.Caption = "完成比%";
            this.colwcbl.FieldName = "bl";
            this.colwcbl.Name = "colwcbl";
            this.colwcbl.OptionsColumn.AllowSort = false;
            this.colwcbl.Visible = true;
            this.colwcbl.VisibleIndex = 10;
            this.colwcbl.Width = 0x3a;
            this.repositoryItemImageComboBox2.Name = "repositoryItemImageComboBox2";
            this.radioGroup.Dock = DockStyle.Top;
            this.radioGroup.Location = new Point(0, 0);
            this.radioGroup.Name = "radQDSelc";
            this.radioGroup.Properties.Columns = 2;
            this.radioGroup.Properties.Items.AddRange(new RadioGroupItem[] { new RadioGroupItem(null, "全部清单"), new RadioGroupItem(null, "本期清单") });
            this.radioGroup.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.radioGroup.Size = new Size(0x131, 0x21);
            this.radioGroup.TabIndex = 12;
            this.radioGroup.SelectedIndexChanged += new EventHandler(this.radioGroup_SelectedIndexChanged);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x4f8, 0x264);
            base.Controls.Add(this.xtraTabControl2);
            base.Controls.Add(this.dockPanel1);
            base.Name = "FrmQDJL";
            this.Text = "清单计量";
            base.ds.EndInit();
            base.dsQuery.EndInit();
            base.dataSets.EndInit();
            ((ISupportInitialize)this.bindingSource6).EndInit();
            this.dataSets1.EndInit();
            this.panelControl2.EndInit();
            this.panelControl2.ResumeLayout(false);
            this.gridControl.EndInit();
            ((ISupportInitialize)this.bindingSource2).EndInit();
            this.gridView2.EndInit();
            this.repositoryItemTextEdit2.EndInit();
            this.panelControl4.EndInit();
            this.panelControl4.ResumeLayout(false);
            this.groupControl2.EndInit();
            this.groupControl2.ResumeLayout(false);
            this.pictureEdit1.Properties.EndInit();
            this.panel1.ResumeLayout(false);
            this.groupControl3.EndInit();
            this.groupControl3.ResumeLayout(false);
            this.memoEdit1.Properties.EndInit();
            ((ISupportInitialize)this.bindingSource).EndInit();
            this.gridControl3.EndInit();
            ((ISupportInitialize)this.bindingSource4).EndInit();
            this.gridView1.EndInit();
            this.repositoryItemTextEdit3.EndInit();
            this.layoutControl1.EndInit();
            this.layoutControl1.ResumeLayout(false);
            this.panelControl6.EndInit();
            this.edtPZBH.Properties.EndInit();
            this.textEdit1.Properties.EndInit();
            this.textEdit7.Properties.EndInit();
            this.textEdit.Properties.EndInit();
            this.textEdit6.Properties.EndInit();
            this.ceTYSB.Properties.EndInit();
            this.layoutControlItem6.EndInit();
            this.layoutControlGroup1.EndInit();
            this.layoutControlItem1.EndInit();
            this.layoutControlItem2.EndInit();
            this.layoutControlItem3.EndInit();
            this.layoutControlItem4.EndInit();
            this.layoutControlItem5.EndInit();
            this.layoutControlItem7.EndInit();
            this.panelControl3.EndInit();
            this.panelControl3.ResumeLayout(false);
            this.groupControl6.EndInit();
            this.groupControl6.ResumeLayout(false);
            this.grdSPQK.EndInit();
            ((ISupportInitialize)this.bindingSource8).EndInit();
            this.gridView5.EndInit();
            this.repositoryItemTextEdit1.EndInit();
            this.groupControl5.EndInit();
            this.groupControl5.ResumeLayout(false);
            this.gridControl2.EndInit();
            ((ISupportInitialize)this.bindingSource7).EndInit();
            this.gridView3.EndInit();
            ((ISupportInitialize)this.bindingSource3).EndInit();
            this.xtraTabControl2.EndInit();
            this.xtraTabControl2.ResumeLayout(false);
            this.xtraTabPage4.ResumeLayout(false);
            this.panelControl7.EndInit();
            this.panelControl7.ResumeLayout(false);
            this.bindingNavigator2.EndInit();
            this.bindingNavigator2.ResumeLayout(false);
            this.bindingNavigator2.PerformLayout();
            this.xtraTabPage3.ResumeLayout(false);
            this.gridQDJL_CT.EndInit();
            ((ISupportInitialize)this.bindingSource1).EndInit();
            this.cardView3.EndInit();
            this.repositoryItemPictureEdit2.EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl8.EndInit();
            this.panelControl8.ResumeLayout(false);
            this.gridControl4.EndInit();
            this.gridView4.EndInit();
            this.layoutControl2.EndInit();
            this.layoutControl2.ResumeLayout(false);
            this.iAnFljdXyH.EndInit();
            this.textEdit2.Properties.EndInit();
            this.textEdit3.Properties.EndInit();
            this.textEdit4.Properties.EndInit();
            this.textEdit5.Properties.EndInit();
            this.checkEdit1.Properties.EndInit();
            this.layoutControlItem61.EndInit();
            this.layoutControlGroup11.EndInit();
            this.layoutControlItem11.EndInit();
            this.layoutControlItem31.EndInit();
            this.layoutControlItem71.EndInit();
            this.layoutControlItem21.EndInit();
            this.layoutControlItem41.EndInit();
            this.groupControl1.EndInit();
            this.groupControl1.ResumeLayout(false);
            this.gridControl5.EndInit();
            this.gridView6.EndInit();
            this.panelControl5.EndInit();
            this.panelControl5.ResumeLayout(false);
            this.buttonEdit.Properties.EndInit();
            ((ISupportInitialize)this.bindingSource5).EndInit();
            this.dockManager.EndInit();
            this.dockPanel3.ResumeLayout(false);
            this.dockPanel2.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.trJLQD.EndInit();
            this.repositoryItemImageComboBox2.EndInit();
            this.radioGroup.Properties.EndInit();
            base.ResumeLayout(false);
        }

        //取消鼠标滚轮效果
        void repositoryItemTextEdit2_Spin(object sender, SpinEventArgs e)
        {
            e.Handled = true;
        }

        void tsbOrder_Click(object sender, EventArgs e)
        {
            base.Save();
            int num = this.bindingSource.Position;
            base.ds.Tables["QDJL_M"].Clear();
            base.ds.Merge(base.ida.ExecuteDataSet("select * from QDJL_M " + Class28.YfQclfhSo(base.OldQCID, "") + " order by PZBH", CommandType.Text, "QDJL_M"));
            this.bindingSource.Position = num;
        }

        private void LfoCoObmo(decimal _decimal, decimal _decimal1)
        {
            Class28.smethod13(this.bindingSource8, _decimal, _decimal1);
        }

        public override void LoadedForm()
        {
            Class28.smethod9(base.ida, this.bindingSource3);
            this.bindingSource7.DataSource = base.dsQuery.Tables["QDJL_MX2"];
            base.SetBindingSource(this.bindingSource, "QDJL_M", true);
            base.SetBindingSource(this.bindingSource2, "QDJL_MX", false);
            base.SetBindingSource(this.bindingSource4, "QDJL_JSS", false);
            this.bindingSource.PositionChanged += new EventHandler(this.GgxUfExf5);
            this.bindingSource2.PositionChanged += new EventHandler(this.bindingSource2_PositionChanged);
            base.ds.Tables["QDJL_JSS"].ColumnChanging += new DataColumnChangeEventHandler(this.method4);
            base.ds.Tables["QDJL_MX"].ColumnChanging += new DataColumnChangeEventHandler(this.method15);
            this.method12();
            this.bindingSource8.DataSource = base.dsQuery.Tables["SPQK"];
            this.bindingSource8.Sort = "xh";
            this.trJLQD.ExpandAll();
            this.method7(false);
            this.method18();
        }

        public override void LoadingData()
        {
            base.LoadingData();
            base.ds.Clear();
            base.dsQuery.Clear();
            base.ds.Merge(base.ida.ExecuteDataSet("select * from QDJL_M " + Class28.YfQclfhSo(base.OldQCID, "") + " order by PZBH", CommandType.Text, "QDJL_M"));
            string str = "select * from QDJL_JSS " + Class28.YfQclfhSo(base.OldQCID, "");
            Class39.smethod4(base.ida, base.ds, str, "QDJL_JSS", true);
            str = "select * from QDJL_MX " + Class28.YfQclfhSo(base.OldQCID, "");
            Class39.smethod4(base.ida, base.ds, str, "QDJL_MX", true);
            str = "select a.id,a.qdbh,b.mc,a.bqjls as sl from qdjl_mx2 a left join zzjgxx b on a.sid=b.id where a.bdid='{0}' and a.qcid={1} order by a.qdbh";
            str = string.Format(str, base.OldBDID, base.OldQCID);
            Class39.smethod4(base.ida, base.dsQuery, str, "QDJL_MX2", true);
            Class28.smethod12(base.dsQuery, base.ida, "000-000-000", false);
            this.method18();
            this.method3();
            this.method7(false);
        }

        private bool method1()
        {
            return this._flag1;
        }

        private void method10(string _str2)
        {
            int num = this.bindingSource.Find("id", _str2);
            this.mtgaywZhr(false);
            this.bindingSource.Position = num;
            this.method18();
            this.method12();
            this.mtgaywZhr(true);
        }

        private void method11(string _str2)
        {
            if (_str2.Equals(""))
            {
                _str2 = DHelp.GetObjValue(this.bindingSource2, "qdbh", false);
            }
            if (_str2.Equals(""))
            {
                _str2 = "000-000-000";
            }
            this.bindingSource8.Filter = "qdbh='" + _str2 + "'";
            if (this.bindingSource8.List.Count == 0)
            {
                Class28.smethod12(base.dsQuery, base.ida, _str2, false);
            }
        }

        private void method12()
        {
            this.mtgaywZhr(false);
            string objId = DHelp.GetObjId(this.bindingSource);
            this.bindingSource2.Filter = "pid='" + objId + "'";
            this.bindingSource4.Filter = "pid='" + objId + "'";
            this.mtgaywZhr(true);
        }

        private void method13()
        {
            string str = DHelp.GetObjValue(this.bindingSource2, "id", false);
            if (str.Equals(""))
            {
                this.bindingSource7.Filter = "1=2";
            }
            else
            {
                this.bindingSource7.Filter = string.Format("id='{0}'", str);
            }
        }

        private void method14()
        {
            base.Save();
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource);
            DataTable table = base.ds.Tables["QDJL_MX"].DefaultView.ToTable();
            table.TableName = "mxTable";
            DataTable table2 = base.ds.Tables["QDJL_JSS"].DefaultView.ToTable();
            table2.TableName = "jssTable";
            DataRow tRow = DHelp.DataAddNew(this.bindingSource, "", "");
            DataTable table1 = base.ds.Tables["QDJL_M"];
            string pid = tRow["id"].ToString();
            DHelp.CopyRow(dataRow.ItemArray, tRow, "", "");
            tRow["PZBH"] = "请修改";
            tRow["TYSB"] = 0;
            tRow.EndEdit();
            DataTable table3 = base.ds.Tables["QDJL_MX"];
            table3.ColumnChanging -= new DataColumnChangeEventHandler(this.method15);
            foreach (DataRow row3 in table.Rows)
            {
                DataRow row4 = table3.NewRow();
                DHelp.CopyRow(row3, row4, pid, "");
                row4["BQJLS"] = 0;
                table3.Rows.Add(row4);
            }
            table3.ColumnChanging += new DataColumnChangeEventHandler(this.method15);
            DataTable table4 = base.ds.Tables["QDJL_JSS"];
            foreach (DataRow row3 in table2.Rows)
            {
                DataRow row5 = table4.NewRow();
                DHelp.CopyRow(row3, row5, pid, "");
                table4.Rows.Add(row5);
            }
            this.method10(pid);
        }

        private void method15(object sender, DataColumnChangeEventArgs e)
        {
            if (e.Column.ColumnName.Equals("BQJLS"))
            {
                decimal num = DHelp.ToDecimal(e.Row["BQJLS"]);
                decimal num2 = DHelp.ToDecimal(e.ProposedValue);
                this.LfoCoObmo(num2, num);
            }
        }

        private void method16(object sender, EventArgs e)
        {
            base.ds.Tables["QDJL_MX"].DefaultView.RowFilter = null;
        }

        private void method17(object sender, EventArgs e)
        {
            base.Close();
        }

        private void method18()
        {
            if (this.bindingSource.DataSource != null)
            {
                string key = DHelp.GetObjValue(this.bindingSource, "JLCT", false);
                int num = this.bindingSource3.Find("ctlj", key);
                if (num != -1)
                {
                    this.bindingSource3.Position = num;
                    byte[] buffer = (byte[])DHelp.GetDataRow(this.bindingSource3)["MAXCT"];
                    using (MemoryStream stream = new MemoryStream(buffer))
                    {
                        this.pictureEdit1.Image = Image.FromStream(stream);
                        return;
                    }
                }
                this.pictureEdit1.Image = null;
            }
        }

        private void method19()
        {
            if (!this.ceTYSB.Checked)
            {
                DataRow dataRow = DHelp.GetDataRow(this.bindingSource);
                if (dataRow != null)
                {
                    FrmCT mct = new FrmCT();
                    if (mct.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        DataRow row = mct.GetRow();
                        string str = row["ctlj"].ToString();
                        byte[] buffer = (byte[])row["MAXCT"];
                        using (MemoryStream stream = new MemoryStream(buffer))
                        {
                            this.pictureEdit1.Image = Image.FromStream(stream);
                        }
                        dataRow["JLCT"] = str;
                    }
                }
            }
        }

        private void method2(bool _flag2)
        {
            this.colbqmjls.Visible = _flag2;
            this.colbqmjlje.Visible = _flag2;
            this.colwcbl.Visible = _flag2;
        }

        private void method20(object sender, NavigatorButtonClickEventArgs e)
        {
            if (e.Button.Tag.Equals("Add"))
            {
                this.method8();
            }
            else if (e.Button.Tag.Equals("Del"))
            {
                this.method9();
            }
        }

        private void method21(object sender, NavigatorButtonClickEventArgs e)
        {
            if (e.Button.Tag.Equals("Add"))
            {
                this.bindingSource4.AddNew();
            }
            else if ((e.Button.Tag.Equals("Del") && (this.bindingSource4.List.Count > 0)) && (MsgBox.ShowQuestion("是否删除当前选中的计算表达式？") == System.Windows.Forms.DialogResult.OK))
            {
                this.bindingSource4.RemoveCurrent();
            }
        }

        private void method3()
        {
            if (base.dsQuery.Tables["JLQD"] != null)
            {
                base.dsQuery.Tables["JLQD"].Clear();
            }
            string exeStr = "";
            switch (this.radioGroup.SelectedIndex)
            {
                case -1:
                    exeStr = CHelp.smethod(string.Format(CSQL._str1, GParams._BDID, GParams.QCInfo.QCID));
                    base.dsQuery.Merge(base.ida.ExecuteDataSet(exeStr, CommandType.Text, "JLQD"));
                    RoundData();
                    this.bindingSource6.DataSource = base.dsQuery.Tables["JLQD"];
                    this.method2(true);
                    break;

                case 0:
                    exeStr = CHelp.smethod(string.Format(CSQL._str1, GParams._BDID, GParams.QCInfo.QCID));
                    base.dsQuery.Merge(base.ida.ExecuteDataSet(exeStr, CommandType.Text, "JLQD"));
                    RoundData();
                    this.bindingSource6.DataSource = base.dsQuery.Tables["JLQD"];
                    this.method2(true);
                    break;

                case 1:
                    exeStr = CHelp.smethod(string.Format(CSQL.JLSPQCQD, GParams._BDID, GParams.QCInfo.QCID));
                    base.dsQuery.Merge(base.ida.ExecuteDataSet(exeStr, CommandType.Text, "JLQD"));
                    RoundData();
                    this.bindingSource6.DataSource = base.dsQuery.Tables["JLQD"];
                    this.method2(false);
                    break;
            }
            if (this.radioGroup.SelectedIndex == 1)
            {
                this.trJLQD.ExpandAll();
            }
        }

        private void RoundData()
        {
            foreach (DataRow dr in base.dsQuery.Tables["JLQD"].Rows)
            {
                if (dr["bqmjlje"] != System.DBNull.Value)
                {
                    dr["bqmjlje"] = Math.Round(Convert.ToDecimal(dr["bqmjlje"]), 0);
                }
            }
        }

        private void method4(object sender, DataColumnChangeEventArgs e)
        {
            if (e.Row.Table.Columns.Contains("JSS") && e.Column.ColumnName.Equals("JSS"))
            {
                string sExpression = e.ProposedValue.ToString();
                if (!sExpression.Equals(""))
                {
                    e.Row["JSJG"] = CHelp.EvalExpress(sExpression);
                }
            }
        }

        private void method5()
        {
            DHelp.DataAddNew(this.bindingSource, "", "")["PZBH"] = "请输入凭证号";
            this.edtPZBH.Focus();
            this.method12();
            DevCCHelp.ControlForm(base.Controls, false, 1);
        }

        private void method6()
        {
            if (!this.ceTYSB.Checked)
            {
                if ((this.bindingSource.List.Count > 0) && (MsgBox.ShowQuestion("是否删除当前计量？") == System.Windows.Forms.DialogResult.OK))
                {
                    while (this.bindingSource2.List.Count > 0)
                    {
                        decimal num = CHelp.ConvertDecimal(((DataRowView)this.bindingSource2.Current).Row["BQJLS"], 0, 0);
                        this.LfoCoObmo(0M, num);
                        this.bindingSource2.RemoveCurrent();
                    }
                    while (this.bindingSource4.List.Count > 0)
                    {
                        this.bindingSource4.RemoveCurrent();
                    }
                    this.bindingSource.RemoveCurrent();
                    this.method12();
                }
            }
            else
            {
                MsgBox.ShowMsg("当前单据已同意上报，不能被删除");
            }
        }

        private void method7([Optional, DefaultParameterValue(false)] bool _flag2)
        {
            if (this.xtraTabControl2.SelectedTabPageIndex == 0)
            {
                if ((_flag2 && (this.bindingSource1.List.Count == 0)) && (this.buttonEdit.Text.Trim() != ""))
                {
                    this.buttonEdit.Text = "";
                }
                IDataAccess access = DBHelp.IniIDA();
                string str = Class28.YfQclfhSo(GParams.QCInfo.QCID, "");
                if (this.buttonEdit.Text.Trim() != "")
                {
                    string str2 = str;
                    str = str2 + " and id in (select pid from qdjl_mx " + Class28.YfQclfhSo(GParams.QCInfo.QCID, "") + " and (qdmc like '%" + this.buttonEdit.Text.Trim() + "%') or (qdbh like '%" + this.buttonEdit.Text.Trim() + "%'))";
                }
                string exeStr = "select * from " + CSQL.QDJL_M_CT_V + str + " order by PZBH";
                if (base.dsQuery.Tables["QDJL_M_CT_V"] != null)
                {
                    base.dsQuery.Tables["QDJL_M_CT_V"].Clear();
                }
                base.dsQuery.Merge(access.ExecuteDataSet(exeStr, CommandType.Text, "QDJL_M_CT_V"));
                this.bindingSource1.DataSource = base.dsQuery.Tables["QDJL_M_CT_V"];
            }
        }

        private void method8()
        {
            if (this.trJLQD.FocusedNode.HasChildren)
            {
                MsgBox.ShowMsg("请选择清单子节点为后继续此操作");
            }
            else
            {
                DataRow dataRow = DHelp.GetDataRow(this.bindingSource6);
                string key = dataRow["qdbh"].ToString();
                int num = this.bindingSource2.Find("qdbh", key);
                if (num == -1)
                {
                    DataTable table = base.ds.Tables["QDJL_MX"];
                    DataRow row = table.NewRow();
                    string objId = DHelp.GetObjId(this.bindingSource);
                    row["PID"] = objId;
                    row["QDID"] = dataRow["ID"];
                    row["QDBH"] = dataRow["QDBH"];
                    row["QDMC"] = dataRow["QDMC"];
                    row["DW"] = dataRow["DW"];
                    row["BQJLS"] = 0.0;
                    row.EndEdit();
                    table.Rows.Add(row);
                    this.bindingSource2.Position = this.bindingSource2.List.Count;
                    base.Save();
                    this.gridControl.Focus();
                    this.method11(key);
                }
                else
                {
                    this.bindingSource2.Position = num;
                }
            }
        }

        private void method9()
        {
            if ((!this.edtPZBH.Properties.ReadOnly && (this.bindingSource2.List.Count > 0)) && (MsgBox.ShowQuestion("是否删除当前清单?") == System.Windows.Forms.DialogResult.OK))
            {
                decimal num = CHelp.ConvertDecimal(DHelp.GetDataRow(this.bindingSource2)["BQJLS"], 0, 3);
                this.LfoCoObmo(0M, num);
                DHelp.DelCurRow(this.bindingSource2);
            }
        }

        private void mtgaywZhr(bool value)
        {
            this._flag1 = value;
            if (this._flag1)
            {
                this.method13();
                this.method11("");
            }
        }

        private void radioGroup_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.method3();
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            this.method19();
        }

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            if (!(this.ceTYSB.Checked || (this.bindingSource.List.Count <= 0)))
            {
                this.pictureEdit1.Image = null;
                DHelp.GetDataRow(this.bindingSource)["JLCT"] = "";
            }
        }

        private void textEdit7_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            e.Value = Class28.smethod15(e.Value.ToString());
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.method6();
        }

        private void toolStripButton10_Click(object sender, EventArgs e)
        {
            string objId = DHelp.GetObjId(this.bindingSource);
            base.OpenDataLog("QDJL_M", GParams._BDID, GParams.QCInfo.QCID, objId);
        }

        private void toolStripButton8_Click(object sender, EventArgs e)
        {
            this.toolStripTextBox1.Focus();
            this.method5();
        }

        private void toolStripButton9_Click(object sender, EventArgs e)
        {
            this.method14();
        }

        private void trJLQD_CustomDrawNodeCell(object sender, CustomDrawNodeCellEventArgs e)
        {
            if ((e.CellText.ToString().Equals("0") || e.CellText.ToString().Equals("0.00")) || e.CellText.ToString().Equals("0.000"))
            {
                e.CellText = "";
            }
        }

        private void trJLQD_DoubleClick(object sender, EventArgs e)
        {
            if (!((this.xtraTabControl2.SelectedTabPageIndex != 1) || this.edtPZBH.Properties.ReadOnly))
            {
                this.method8();
            }
            else if ((this.trJLQD.FocusedNode != null) && !((this.xtraTabControl2.SelectedTabPageIndex != 0) || this.trJLQD.FocusedNode.HasChildren))
            {
                DataRow curRow = DHelp.GetCurRow(this.trJLQD);
                this.buttonEdit.Text = curRow["QDMC"].ToString();
                this.method7(false);
            }
        }

        private void xtraTabControl2_SelectedPageChanged(object sender, TabPageChangedEventArgs e)
        {
            if (this.xtraTabControl2.SelectedTabPageIndex.Equals(0))
            {
                base.Save();
                this.method7(true);
                if (this.bindingSource.List.Count > 0)
                {
                    string objId = DHelp.GetObjId(this.bindingSource);
                    this.bindingSource1.Position = this.bindingSource1.Find("id", objId);
                }
            }
        }
    }
}

